Many of you may be well aware of this story but i am sharing it again because i realised lord never leaves us alone and he has a grand plan for us than we can ever imagine.

One day, four Kumaras, named Sanaka, Sanandana, Sanatana, and Sanatkumara, arrived at the entrance of Vaikuntha. By virtue of their tapas or austerities, they appeared to be children but, in reality, they were very old and spiritually advanced. Tempted by the world inside, they walked towards the gates. As they were about to enter the spiritual realm, they were stopped by Jaya and Vijaya, the dwarapalakas or gatekeepers of Vaikuntha. Considering them children, Jaya and Vijaya arrogantly declared that they could not be allowed inside the abode of Vishnu. They inform the Kumaras that Vishnu could not be disturbed as he was resting. The duo was unaware that these four Kumaras happened to be the mind-born sons or manasaputras of Brahma.

The Kumaras challenged Jaya and Vijaya’s words by saying that they were devotees, and Vishnu is always available for his devotees. Enraged by the slight, they cursed the twin gatekeepers to lose their divinity and take birth in the material world. On being cursed, Jaya and Vijaya let go of their arrogance and pleaded with the Kumaras to revoke the curse. Hearing the commotion, Vishnu enquired. Learning about this incident, Vishnu left his abode to sort out the issue. All present at the gate bowed as Vishnu appeared at the entrance. 

Vishnu turned to his gatekeepers and told them that the curse of a Kumara could not be revoked. Instead, he could modify the curse. He gave them two options; either they could be born seven times as devotees of Vishnu, or three times as enemies of Vishnu. Either way, Vishnu would be a part of their mortal lives. Jaya and Vijaya could not stand the thought of being away from their master for seven lives, so they agreed to be born thrice as his enemies. After fulfilling the curse, they could return to their immortal forms as his gatekeepers.  

In the Satya Yuga, Jaya and Vijaya were born as the asuras Hiranyaksha and Hiranyakashipu. Hiranyaksha was slain by the Varaha avatar of Vishnu, and Hiranyakashipu was slain Vishnu’s Narasimha avatar. In the Treta Yuga, they were born as the brothers Ravana and Kumbarkarna. They were both destroyed by Rama, the seventh avatar of Vishnu. In the Dwapara Yuga,  they took birth as Shishupala and Dantavakra. They were both defeated by Krishna, the eighth avatar of Vishnu.

The depiction of Jaya and Vijaya guarding the gates of Vaikuntha loka is a common feature of most Vishnu temples, showing how inseparable they are from their lord.