Subhasutta

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

[331] When his mind (citta) is thus concentrated (samādhi)—purified, cleansed, unblemished, rid of corruptions (upakkilesa), malleable, workable, steady, and attained to imperturbability—he directs and inclines the mind toward the various kinds of psychic power (iddhividha). He wields the many kinds of psychic power: having been one, he becomes many; having been many, he becomes one; he appears and vanishes; he goes unhindered through a wall, through a rampart, through a mountain, as if through space; he dives in and out of the earth as if it were water; he walks on water without sinking as if it were 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; he exercises mastery with the body even as far as the Brahmā world. Student, just as a skilled potter or a potter's apprentice, with well-prepared clay, might make and produce whatever kind of vessel he wished; or again, student, just as a skilled ivory-carver or an ivory-carver's apprentice, with well-prepared ivory, might make and produce whatever kind of ivory-work he wished; or again, student, just as a skilled goldsmith or a goldsmith's apprentice, with well-prepared gold, might make and produce whatever kind of gold article he wished—even so, student, when his mind is thus concentrated—purified, cleansed, unblemished, rid of corruptions, malleable, workable, steady, and attained to imperturbability—a bhikkhu directs and inclines the mind toward the various kinds of psychic power. He wields the many kinds of psychic power: having been one, he becomes many … he exercises mastery with the body even as far as the Brahmā world. This too pertains to his wisdom.

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

This passage also appears in 2 other places