The Bodhisatta was once born as Brahmadatta, son of the king of Magadha. He studied at Takkasilā with his friend Darīmukha, son of the king’s chief priest (purohita). Once, while travelling, they came to Bārāṇasī and there, while resting in the king’s garden, Brahmadatta fell asleep and Darīmukha, who perceived certain omens which foretold kingship for his friend, left him, and having become a Pacceka Buddha, retired to Nandamūlapabbhāra.
Brahmadatta became king of Bārāṇasī and, in his glory, forgot Darīmukha for many, many years. When fifty years had passed Darīmukha visited the king and taught him on renunciation. Later, Brahmadatta also became an ascetic.
The story was related in reference to the Buddha’s renunciation. J.iii.238‑46.