 While most versions agree that Gautama curses Ahalya after discovering the affair, the curse varies from text to text.However, almost all versions describe Rama as the agent of her liberation and redemption.The "Bala Kanda" mentions that Gautama spots Indra, who is still in disguise, and curses him to lose his testicles.