No information is found regarding the time and place of the revelation of this composition. However, Dr. Rattan Singh Jaggi believes that, based on the poetics, expressive power, and depth of ideas in this composition, it is highly likely that Guru Nanak Sahib revealed it in his old age.
Dr. Rattan Singh Jaggi, Bhav Prabodhani Tika Sri Guru Granth Sahib, part five, pages 2597-2598.