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 purohita. Once, while travelling, they came to Benares 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úlaguhá. Brahmadatta became king of Benares and, in his glory, forgot Darímukha for many, many years. When fifty years had passed Darímukha visited the king and preached to him on Renunciation. Later, Brahmadatta also became an ascetic.
The story was related in reference to the Buddha's Renunciation. J.iii.238-46.