A legend narrates that the sacred cow Kamadhenu resided with sage Jamadagni. The earliest version of the legend, which appears in the epic Mahabharata, narrates that the thousand-armed "Haihaya" king, Kartavirya Arjuna, destroyed Jamadagni's hermitage and captured the calf of Kamadhenu. To retrieve the calf, Jamadagni's son Parashurama slew the king, whose sons in turn killed Jamadagni. Parashurama then destroyed the "kshatriya" ("warrior") race 21 times and his father is resurrected by divine grace. Similar accounts of the abduction of the celestial cow or her calf, the killing of Jamadagni by Kartavirya Arjuna, and the revenge of Parashurama resulting in the death of Kartavirya Arjuna, exist in other texts. The "Bhagavata Purana" mentions that the king abducted Kamadhenu as well as her calf and Parashurama defeated the king and returned the kine to his father. The "Padma Purana" mentions that when Kartavirya Arjuna tried to capture her, Kamadhenu, by her own power, defeated him and his army and flew off to heaven; the enraged king then killed Jamadagni.