The son of Bhagīratha was Śruta, the son of Śruta was Nābha, and Nābha's son was Sindhudvīpa. The son of Sindhudvīpa was Ayutāyu, and the son of Ayutāyu was Ṛtūparṇa, who was a friend of Nala. Ṛtūparṇa gave Nala the art of gambling and learned from him the art of aśva-vidyā. The son of Ṛtūparṇa was known as Sarvakāma, the son of Sarvakāma was Sudāsa, and his son was Saudāsa. The wife of Saudāsa was named Damayantī or Madayantī, and Saudāsa was also known as Kalmāṣapāda. Because of some defect in his fruitive activities, Saudāsa was cursed by Vasiṣṭha to become a Rākṣasa. While walking through the forest, he saw a brāhmaṇa engaged in sex with his wife, and because he had become a Rākṣasa he wanted to devour the brāhmaṇa. Although the brāhmaṇa's wife pleaded with him in many ways, Saudāsa devoured the brāhmaṇa, and the wife therefore cursed him, saying, "As soon as you engage in sex you will die." After twelve years, therefore, even though Saudāsa was released from the curse of Vasiṣṭha Muni, he remained sonless. At that time, with Saudāsa's permission, Vasiṣṭha impregnated Saudāsa's wife, Madayantī. Because Madayantī bore the child for many years but still could not give birth, Vasiṣṭha struck her abdomen with a stone, and thus a son was born. The son was named Aśmaka.
The son of Aśmaka was known as Bālika. He was protected from the curse of Paraśurāma because of being surrounded by many women, and therefore he is also known as Nārīkavaca. When the entire world was devoid of kṣatriyas, he became the original father of more kṣatriyas. He is therefore sometimes called Mūlaka. From Bālika, Daśaratha was born, from Daśaratha came Aiḍaviḍi, and from Aiḍaviḍi came Viśvasaha. The son of Viśvasaha was Mahārāja Khaṭvāṅga. Mahārāja Khaṭvāṅga joined the demigods in fighting the demons and was victorious, and the demigods therefore wanted to give him a benediction. But when the King inquired how long he would live and understood that his life would last only a few seconds more, he immediately left the heavenly planets and returned to his own abode by airplane. He could understand that everything in this material world is insignificant, and thus he fully engaged in worshiping the Supreme Personality of Godhead, Hari.