Maharshi Vishvamitra (viśvā-mitra) is one of the most venerated rishis or sages of ancient India. A near-divine being, he is also credited as the author of most of Mandala 3 of the Rigveda, including Gayatri Mantra. The Puranas mention that only 24 rishis since antiquity have understood the whole meaning of—and thus wielded the whole power of—Gayatri Mantra. Vishvamitra is supposed to be the first, and Yajnavalkya the last.
The story of Vishvamitra is narrated in the Valmiki Ramayana.[8]
Vishvamitra was a Lodh king in ancient India, also called Kaushik (descendant of Kusha) and belonged to Amavasu Dynasty. Vishwamitra was originally the Chandravanshi (Somavanshi) King of Kanyakubja. He was a valiant warrior and the great-grandson of a great king named Kusha. Valmiki Ramayana, prose 51 of Bala Kanda, starts with the story of Vishvamitra:
There was a king named Kusha (not to be confused with Kusha, son of Rama), a brainchild of Brahma and Kusha's son was the powerful and verily righteous Kushanabha. One who is highly renowned by the name Gaadhi was the son of Kushanabha and Gaadhi's son is this great-saint of great resplendence, Vishvamitra. Vishvamitra ruled the earth and this great-resplendent king ruled the kingdom for many thousands of years.[9]
His story also appears in various Puranas; however, with variations from Ramayana. Vishnu Purana and Harivamsha chapter 27 (dynasty of Amaavasu) of Mahabharata narrates the birth of Vishvamitra. According to Vishnu Purana,[10] Kushanabha married a damsel of Purukutsa dynasty (later called as Shatamarshana lineage - descendants of the Ikshvaku king Trasadasyu) and had a son by name Gaadhi, who had a daughter named Satyavati (not to be confused with the Satyavati of Mahabharata).
Satyavati was married to an old man known as Ruchika who was foremost among the race of Bhrigu. Ruchika desired a son having the qualities of a good person and so he gave Satyavati a sacrificial offering (charu) which he had prepared to achieve this objective. He also gave Satyavati's mother another charu to make her conceive a son with the character of a Kshatriya at her request. But Satyavati's mother privately asked Satyavati to exchange her charu with her. This resulted in Satyavati's mother giving birth to Vishvamitra, and Satyavati gave birth to Jamadagni, father of Parashurama, a person with qualities of a warrior