JAY and VIJAY
According to a story from Bhagavata Purana, the Four Kumaras, Sanaka, Sanandana, Sanatana, and Sanatkumara who are the manasputras of Brahma (sons born from the mind or thought power of Brahma) visited Vaikuntha, the abode of Vishnu, to see him.
Due to the strength of their tapas, the four Kumaras appear to be mere children, though they are of great age. Jay and Vijay, the gate keepers of the Vaikuntha interrupt the Kumaras at the gate, thinking them to be children. They also tell the Kumaras that Sri Vishnu is resting and that they cannot see him now.
The enraged Kumaras replied Jay and Vijay that Vishnu is available for his devotees any time, and cursed both the keepers Jay and Vijay, that they would have to give up their divinity, be born as mortals on Earth and live like normal human beings.
Vishnu appeared before them, and the gatekeepers requested Vishnu to lift the curse of the Kumaras. Vishnu says curse of Kumaras cannot be reversed. Instead, he gives Jaya and Vijaya two options. The first option is to take seven births on Earth as a devotee of Vishnu, while the second is to take three births as his enemy.
After serving either of these sentences, they can re-attain their stature at Vaikuntha and be with him permanently. Jay and Vijay cannot bear the thought of staying away from Vishnu for seven lives. As a result, they choose to be born three times on Earth even though it would have to be as enemies of Vishnu.
- In the first life they were born as Hiranyakashipu and Hiranyaksha in the Krita Yuga who were killed by Vishnu taking the form of Varaha(3rd Avatar), a boar and Narasimha(4th Avatar), a man-lion in the Satya Yuga.
- In their second life they were born as Ravana and Kumbhakarna and were killed by Vishnu who descended as Rama in the Treta Yuga.
- And in their third life as Shishupala and Dantavakra who were killed by Vishnu who descended as Krishna in the Dwapara Yuga.