Giani Harnam Singh Khalsa Bhindranwale gives a brief description of the revelation of this composition. According to him, one day, Guru Ramdas Sahib was seated at the holy place of Dukh Bhanjani Beri Sahib at Sri Amritsar Sahib. The Sikhs pleaded before the Guru, O Sovereign! Bless us with a teaching. Hearing this, the Guru revealed composition in a verse form known as Karhale in the purbi
jati (class) of
Rag Gauri, which is also the name of this composition.
Giani Harnam Singh Khalsa Bhindranwale, Shiromani Damdami Satik, part three, page 863.
Apart from this, no other historical information on this composition is found.