The four Kumaras roamed around at their free will with their cosmic powers all over the universe. During one of their sojourns, they arrived at Vaikuntha, the abode of Vishnu. The city, with the residence of Vishnu located at the center of seven circular walls, is considered as a place of bliss and purity. It has seven gates of entry. The four Kumaras passed through the first six gates without any hindrance. The seventh gate was guarded by Jaya and Vijaya, the two dvarapalas (door-guards) of Vishnu's palace. The angry guardians stopped the four Kumaras and laughed at them since they looked like children and were also naked, and did not permit them to enter through the seventh gate. The four Kumaras were perplexed by the behaviour of the gatekeepers as they had not faced such a situation and ridicule anywhere else. They expected Jaya and Vijaya to be like their master Vishnu, who does not differentiate among beings. Enraged, the Kumaras cursed them to be born on earth thrice, as three villains with characteristics of lust, anger and greed. The gatekeepers accept the curse and bow to the Kumaras and beg for their forgiveness. Lord Vishnu who learnt of the incident, appeared before the Kumaras in all his glory with his retinue. The four Kumaras, who were on their first visit to Vaikuntha, took in by the sight and the glittering divine figure of Vishnu. With deep devotion, they appealed to him to accept them as his devotees and allow them to offer worship at his feet for all time to come and let his feet be their final emancipation. Vishnu complied with their request and also assured Jaya and Vijaya that they will born as demons on earth but will be released from all births (killed) by an avatar of Vishnu. The two guards were dismissed by Vishnu to go and suffer the curse of the Kumaras on earth and then only return to his abode, after the end of the curse. The two banished guards were then born on earth, at an inauspicious hour, to the sage Kashyapa and his wife Diti as asuras who were named Hiranyakashipu and Hiranyaksha.