Maghadevasutta

Suttapiṭaka · Majjhimanikāya · Vol. 13 · Section 456

[456] Then, Ānanda, the son of King Maghadeva, having given a boon village to the barber and having thoroughly instructed the prince, his eldest son, in kingship, shaved off his hair and beard, put on the ochre robes, and went forth from the home life into homelessness in this very Maghadeva Mango Grove. He dwelt pervading one quarter with a mind imbued with loving-kindness (mettā); likewise the second, likewise the third, likewise the fourth. Thus above, below, across, everywhere, and to all as to himself, he dwelt pervading the entire world with a mind imbued with loving-kindness — abundant, exalted, immeasurable, without enmity, without ill will. With a mind imbued with compassion (karuṇā) … with a mind imbued with altruistic joy (muditā) … with a mind imbued with equanimity (upekkhā) he dwelt pervading one quarter; likewise the second, likewise the third, likewise the fourth. Thus above, below, across, everywhere, and to all as to himself, he dwelt pervading the entire world with a mind imbued with equanimity — abundant, exalted, immeasurable, without enmity, without ill will. Now, Ānanda, the son of King Maghadeva played the games of a boy for eighty-four thousand years, exercised the viceroyalty for eighty-four thousand years, reigned as king for eighty-four thousand years, and for eighty-four thousand years, having gone forth from the home life into homelessness in this very Maghadeva Mango Grove, he lived the holy life (brahmacariya). Having developed the four divine abidings (brahmavihāra), with the breaking up of the body, after death, he attained to the Brahmā world.

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