Indra's Deception
The sage Gautama and his wife Ahalya lived in a hermitage. Ahalya was renowned as the most beautiful woman of the age.
Indra, in his desire for her, took the form of Gautama and came to the hermitage while the sage was away.
Ahalya was deceived.
When Gautama returned, he saw what had happened - either through direct perception or by the signs. He cursed both Indra and Ahalya.
The Two Curses
To Indra: "You will be marked with a thousand vaginas on your body." (Later modified to a thousand eyes - the marks became the eyes, earning him the epithet Sahasraksha, thousand-eyed.)
To Ahalya: "You will become invisible - imperceptible as stone, without body or form - eating air and existing in ash, until Rama son of Dasharatha passes this way. At the touch of his feet, you will be restored, purified, and return to me in love."
The Wait
Ahalya waited. The Ramayana does not say how long - but it was long enough to encompass Dasharatha's entire life, his sons' births, their childhoods.
She existed in the ashrama, invisible, sustained by air, in a state that the tradition describes as stone-like.
The Liberation
Vishwamitra brought the young Rama and Lakshmana to the ashrama.
Rama's foot touched the earth of the ashrama.
Ahalya materialized - luminous, restored, free of the curse. She stood before Rama, performed worship, and returned to wait for Gautama's return.
Gautama came back, purified, reconciled.
The Panchakanya
Ahalya is counted among the five Panchakanyas - women whose names, recited in the morning, bring merit. She is included not despite the scandal but because of the purity of her restoration.