evam vrttah parityaktah
pitra sneham apohya vai
yogaisvaryena balams tan
darsayitva tato yayau
evam vrttah—thus engaged (in abominable activities); parityaktah—condemned; pitra—by his father; sneham—affection; apohya—giving up; vai—indeed; yoga-aisvaryena—by mystic power; balan tan—all those boys (thrown in the water and killed); darsayitva—after again showing them all to their parents; tatah yayau—he left that place.
Because Asamanjasa engaged in such abominable activities, his father gave up affection for him and had him exiled. Then Asamanjasa exhibited his mystic power by reviving the boys and showing them to the King and their parents. After this, Asamanjasa left Ayodhya.
Asamanjasa was a jati-smara; because of his mystic power, he did not forget his previous consciousness. Thus he could give life to the dead. By exhibiting wonderful activities in relation to the dead children, he certainly attracted the attention of the King and the people in general. Then he left that place immediately.
Link to this page: https://prabhupadabooks.com/sb/9/8/17