The Sanaka brothers, were the eldest of Brahma's creations. Born from his mind, they were self-realised souls and always had the appearance of five-year olds.
Once they travel to Vaikuntha, the abode of Lord Vishnu. Unhindered, they cross the six gates and when they came to the seventh, they were stopped by the Dwarapalakas, Jaya and Vijaya, due to their unpalatable appearance.
Angered that their desire to meet Srihari was thwarted, the sages spoke:
"The inhabitants of Vaikuntha, do not see diversity, as the whole universe is contained in Srihari. Fear, caused by diversity has made you stop us. As you see diversity even here, you shall go to those spheres where the three vicious propensities (lust, anger and greed) are one's deadly enemies."
The dwarapalakas prostrate before the sages, and accept the punishment meted out to them. But they plead that even when they descend into the lower regions, they may not forget, out of infatuation, the memory of the Lord.
Hari appears before them and agrees with the sages' curse.
They descend to the earth, born to Diti and sage Kashyapa, as Hiranyaksha and Hiranyakashipu.