The Background
King Parikshit died from the bite of the serpent king Takshaka. His son Janamejaya vowed revenge. He conducted the sarpa satra - the serpent sacrifice - in which all serpents of the world were summoned by name and fell into the fire.
Thousands of serpents had already fallen. Takshaka, the greatest, was about to fall.
The Prophecy
Brahma had told Vasuki, king of the nagas: your nephew Astika will end the sacrifice.
Astika was the son of the wandering sage Jaratkarou and Vasuki's sister - also named Jaratkarou. His birth had been arranged precisely for this purpose.
Jaratkarou's Condition
The sage Jaratkarou had long refused to marry. His ancestors appeared to him as thin figures hanging from a rope over a pit - their plight was because he had no son to continue the lineage.
He agreed to marry only if he found a bride with the same name as himself. The serpents brought him Vasuki's sister, Jaratkarou. The condition was met.
Astika was born.
The Stopping
When Astika came to the sacrifice as a young man, he praised the king, the priests, and the sacrifice with such eloquence and learning that Janamejaya was impressed.
He offered Astika a boon.
Astika said: "Let this sacrifice stop."
Janamejaya was bound by his word. The sacrifice stopped. Takshaka, already approaching the flames, was pulled back.
The serpents were saved.