In another version of the story, Sunahshepa is lost son of Vishvamitra. When Vishvamitra was Prince of Bharats (Kaushik) - and his name was Vishwarath then, he was abducted by the enemy king Shambar. There, Shambar's daughter, Ugra, falls in love with Vishvarath. Ugra convinces Prince Vishvarath to marry her. Looking at the good character of Vishvarath, Shambar also agrees for the marriage. Soon after the marriage, the Bharatas win the battle against Shambar. When they found their Prince Vishvarath alive, they feel happy but they could not accept Ugra as their future queen as she is an Asura. To convert Ugra into an Aryan, Vishvarath creates Gayatri Mantra, but people still refuse to accept her. Soon she gives birth to a son, but to save the son from the angry people, the greatest female sage Lopamudra sends the child to a hidden place. To Lopamudra and Vishvarath's sadness, people kill Ugra. But the son is saved, without the knowledge of Vishvarath. This child grows young and he comes to sacrifice himself in the ceremony of Ambarisha (or King Harishchandra).