In lunar dynasty,was a king kausik also known as Vishvamitra.Kng posesed extra ordinary qalities and ruled the kingdom well once the king went on a tour of his kindom with a large army . As he was passing a forest he came across the hermitage of Sage Vaishishtha .The sage offered him a grand reception and requsted him to be his guest.The king declined offer as the sage would not have been able to feed the large army.Sage told the king not to worry and informed him that the Sage had wishfulfilling cow (kamadehnu)sabala .The Sage called out the divine cow . kamadehnu was Born during churnuing of the ocean and was presented to Sage Vaisitha .Vasistha told the cow to make an elborte feast for the king's army and an elobrate feast appeared . The king and his army engoyed the feast .
The king was imperessed by the cow's poweress and was convinced that the cow would be more useful to a king than a sage . he further added anything precious belonged to the king and put his stake on sabala Visvamitra politely declined to give sabala to the king . The king became angry and ordered his soldiers to capture sabala . Captured by the kings men sabala broke down on the thought of being taken away from her father like sage . She ran back to the sage wnting to know the reason as to why he had abondened her . Vasistha told her that he not abondened her and told her to make army of her own . Sabala made her own army and defeated the king .
Vishvamitra the went into forest and performed 12 years of penance . Lord siva was pleased with the penance and gave him all the astras . Vishvamitra went to Vaishishtha and sent all Astras towards him Vashishtha absorbed all the astras using his Brmhadanda . Vishvamitra then went south .he did a lot of tapas to get the title of rajya rsi . During this time Trisanku (a king ) came to Vishvamitra asked him to send Trisanku to heaven in his body form .the devas denied trisanku entry in to the heavens .Annoyed at this act Vishvamitra used all his powers to create a hevean for Trisanku.
Vishvamitra then did a lot of penance to become a maharsi and then a Brmharsi . Vishvamitra ,While he was performing penance ,was attracted to aphsara sent by Indra to distract him. Vishvamitra spent 10 years with her and gave birth to sankuntala After he became a Maharsi Indra sent another apsara Rambha ,but Vishvamitra cursed her to became a stone for 1000 years . then after a lot of tapas he became a brmharsi a person with total control over anger .He then became elgible for keeping Sabala but he no more wished to keep her .