Gandhodakavagga

Suttapiṭaka · Khuddakanikāya · Therāpadāna (1) · Vol. 32 · Section 334

[334] As the Fully Awakened One (sambuddha), golden in color, was going along the pathway of the winds, blazing like a fire fed with ghee, like a flaming sacrificial fire, I took up water in my hand and tossed it up into the sky; the great hero accepted it — the Buddha, the compassionate seer. Standing in the sky, the Teacher whose name was Padumuttara, knowing my intention, spoke this verse: "By this gift of water and by the arousing of rapture (pīti), for a hundred thousand eons (kappa) you shall not be reborn in a bad destination (duggati)." By that deed (kamma), O lord of the two-footed, eldest of the world, bull among men, having abandoned victory and defeat, I have attained the unshakable state. Sixty-five hundred eons [ago] there were three wheel-turning monarchs (cakkavatti) named Sahassarāja, lords of the people [ruling] to the four ends [of the earth]. The four analytic insights (paṭisambhidā), and also these eight liberations (vimokkha), the six superknowledges (chaḷabhiññā) have been realized; the Buddha's teaching has been done. Thus indeed the Venerable Elder Udakapūjaka spoke these verses. The Apadāna of the Elder Udakapūjaka is concluded. Third: The Apadāna of the Elder Punnāgapupphiya (333)

English translation from the Pali (Siam Raṭṭha edition) — under review, not for citation.

This passage also appears in 1 other place