Nearly everyone knows the famous story of Adulteration of Indra with Ahalya. But there is a story of how Ahalya was married to Gautama Rishi.
I have heard there was competition among Gods to marry Ahalya.
This website here also mentions the story I have heard. It tells:
Brahma announced that he would marry Ahalya to the person who would travel around the earth and come back first. On hearing Brahma's words, all the Devtas and Rishis embarked upon their journey. At the same time, while going back to his ashram, Maharshi Gautama saw baby Kamdhenu (divine cow) taking birth. Looking at that site, the sage got overwhelmed by the prominence of the creator and out of respect, did a circumbulation of the cow and a Shivling....
Brahma came to know everything through his meditation powers. He told Rishi Gautama that a cow which had given birth was equal to the earth with seven islands and to move around it (perform parikrama) and the Shivling was equal to travelling around Earth. Brahma was impressed by the patience, knowledge and penance of Rishi Gautam and told him that he deserved to get married to Ahalya.
Which scripture mention this story of Race among Gods to marry Ahalya ?