In the scripture Bhavishyottara Purana, god Krishna narrates significance of Shayani Ekadashi to Yudhishthira, as the creator-god Brahma narrated the significance to his son Narada once. The story of king Mandata is narrated in this context. The pious king's country had faced drought for three years, but the king was unable to find a solution to please the rain gods. Finally, sage Angiras advised the king to observe the vrata (vow) of Dev-shayani ekadashi. On doing so by the grace of Vishnu, there was rain in the kingdom.