[2][3] The Brahmanda Purana 14.46 narrates the following story of Kalayavana's birth, a woman named Vrukkka-Devi decided to test the virility of Gargya (IAST: Gārgya, "descendent of Garga").
[7] Krishna, in order to defend his people, built a formidable city, named Dvaraka, to which he transported the inhabitants of Mathura.
Krishna strategically fled the battlefield and lured Kalayavana into the cave where the great king of Treta Yuga, Muchukunda, one of the forefathers of Rama, was in a deep slumber of thousands of years after helping the devas in an epic war with the asuras.
Muchukunda then travelled north to Gandamadana Mountain, and from there, to Badrikashrama, for doing penance and finally achieved liberation in the form of moksha.
[10][11] The hills and the cave where Muchukunda rested is held by locals to be located at Ranchodji teerth, district Lalitpur, in the state of Uttar Pradesh.