Once upon a time, the king of Bārāṇasī had no heir, but finding three eggs in a nest — an owl’s, an mynah's, and a parrot’s — he brought them, and when they were hatched out, adopted the birds as his children, giving them the names of Vessantara, Kuṇḍalinī, and Jambuka. When they had grown up in the houses of the courtiers who had charge of them, the king had them summoned one by one, and asked them for advice as to how a king should reign. Each admonished the king in eleven stanzas, and, at the suggestion of the admiring populace, they were given respectively the ranks of general, treasurer, and commander-
The story was related in reference to the admonitions delivered by the Buddha to the king of Kosala. The king of the past was Ānanda, Kuṇḍalinī was Uppalavaṇṇa, Vessantara, Sāriputta, and Jambuka the Bodhisatta (J.v.109‑25).
The verses uttered by Jambuka are often quoted. e.g., J.i.177; vi.94.