SāmaññaphalasuttaSandiṭṭhikasāmaññaphalapucchā

Suttapiṭaka · Dīghanikāya · Sīlakkhandhavagga · Vol. 9 · Section 133

[133] When his mind (citta) is thus concentrated (samādhi) — purified, bright, unblemished, rid of defilements (upakkilesa), malleable, wieldy, steady, and attained to imperturbability — he directs and inclines his mind to the kinds of psychic power (iddhividhā). He wields the manifold kinds of psychic power: having been one, he becomes many; having been many, he becomes one; he appears and vanishes; he goes unimpeded through walls, through ramparts, through mountains, as if through space; he dives into and emerges from the earth as if it were water; he walks upon water without breaking it, as if upon earth; seated cross-legged he travels through the sky like a winged bird; with his hand he touches and strokes even this moon and sun, so mighty and so powerful; and he exercises mastery with his body even as far as the Brahmā world. Great king, just as a skilled potter or a potter's apprentice, with well-prepared clay, might make and bring to completion whatever kind of vessel he should wish; or again, great king, just as a skilled ivory-worker or an ivory-worker's apprentice, with well-prepared ivory, might make and bring to completion whatever kind of ivory work he should wish; or again, great king, just as a skilled goldsmith or a goldsmith's apprentice, with well-prepared gold, might make and bring to completion whatever kind of gold work he should wish — even so, great king, a bhikkhu, when his mind is thus concentrated — purified, bright, unblemished, rid of defilements, malleable, wieldy, steady, and attained to imperturbability — directs and inclines his mind to the kinds of psychic power. He wields the manifold kinds of psychic power: having been one, he becomes many; having been many, he becomes one; he appears and vanishes; he goes unimpeded through walls, through ramparts, through mountains, as if through space; he dives into and emerges from the earth as if it were water; he walks upon water without breaking it, as if upon earth; seated cross-legged he travels through the sky like a winged bird; with his hand he touches and strokes even this moon and sun, so mighty and so powerful; and he exercises mastery with his body even as far as the Brahmā world. This too, great king, is a fruit of the ascetic life, visible in this very life, more excellent and more sublime than the former fruits of the ascetic life visible in this very life.

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

This passage also appears in 2 other places