On reaching Puskara, while Ambarīsa is taking rest, Śunahśepa approaches Viśwāmitra, who was practising austerities there, and inquires of him a means of escaping death without meeting with the king’s opposition, whereupon Viśwāmitra teaches him a prayer each for propitiating Indra and Lord Visnu, respectively, by reciting which the boy secures release from Ambarīsa’s bondage and the latter gets the reward of the sacrifice without sacrificing him.