The tune of the "la la" vocalisation in this song was taken from the accordion solo in the Hindi film song "Aai Aai Ya Sukoo Sukoo" ("Junglee", 1961) composed by Shankar - Jaikishan.
Majrooh Sultanpuri was arrested by the Indian government in 1949 for his leftist writings in general and for a poem he wrote targetting Prime Minister Jawaharlal Nehru in particular. The poem in question was - "Aman ka jhanda is dharti par kisne kaha lahraane na paaye / Yeh bhi koi Hitler ka hai chela, maar le saathi jaane na paaye / Commonwealth ka das hai Nehru, maar le saathi jaane na paaye". When asked to apologise, Majrooh refused and was consequently sent to jail, leaving behind his family at home. Understanding Majrooh's predicament, Raj Kapoor visited him in jail and asked him to write poems for him for a generous fee. It was then that Majrooh wrote the lyrics of this song for him. Years later, while writing songs for this film, he did not take any fee for this song saying that he had already been paid for it. Another poem he wrote for Raj Kapoor in jail was the mukhda of "Duniya Banane Wale" ("Teesri Kasam", 1966) which was later developed into the song by Hasrat Jaipuri.