The Bodhisatta, born as king of Bārāṇasī, discovering that one of his ministers had intrigued in his harem, expelled him from the kingdom. The minister took up service under the king of Kosala, and, as a result of his conspiracy, the Bodhisatta was taken captive and cast into prison (J.iii.153 ff). For the rest of the story see Ekarāja Jātaka.
The story was related in reference to a councillor of Pasenadi who was guilty of misconduct in the harem.