"Yesterday" is a song by the English rock band the Beatles, written by Paul McCartney (credited to Lennon–McCartney), and first released on the album Help! in the United Kingdom in August 1965.
According to biographers of McCartney and the Beatles, McCartney composed the entire melody in a dream one night in his room at the Wimpole Street home of his then girlfriend Jane Asher and her family. Upon waking, he hurried to a piano and played the tune to avoid forgetting it.
McCartney's initial concern was that he had subconsciously plagiarised someone else's work (known as cryptomnesia). As he put it, "For about a month I went round to people in the music business and asked them whether they had ever heard it before. Eventually it became like handing something in to the police. I thought if no one claimed it after a few weeks then I could have it."
Upon being convinced that he had not robbed anyone of their melody, McCartney began writing lyrics to suit it. As Lennon and McCartney were known to do at the time, a substitute working lyric, titled "Scrambled Eggs" (the working opening verse was "Scrambled eggs/Oh my baby how I love your legs/Not as much as I love scrambled eggs"), was used for the song until something more suitable was written. In his biography, Paul McCartney: Many Years from Now, McCartney recalled: "So first of all I checked this melody out, and people said to me, 'No, it's lovely, and I'm sure it's all yours.' It took me a little while to allow myself to claim it, but then like a prospector I finally staked my claim; stuck a little sign on it and said, 'Okay, it's mine!' It had no words. I used to call it 'Scrambled Eggs'."[