It is told of Jaafer ben Yehya the Barmecide that he sat down one day to drink and being minded to be private (with his friends), sent for his boon-companions, in whom he delighted, and charged the chamberlain (145) that he should suffer none of the creatures of God the Most High to enter, save a man of his boon-companions, by name Abdulmelik ben Salih, (146) who was behindhand with them. Then they donned coloured clothes, (147) for that it was their wont, whenas they sat in the wine-chamber, to don raiment of red and yellow and green silk, and sat down to drink, and the cups went round and the lutes pulsed.

Now there was a man of the kinsfolk of the Khalif [Haroun er Reshid], by name Abdulmelik ben Salih ben Ali ben Abdallah ben el Abbas, (148) who was great of gravity and piety and decorousness, and Er Reshid was used instantly to require of him that he should keep him company in his carousals and drink with him and had proffered him, to this end, riches galore, but he still refused. It chanced that this Abdulmelik es Salih came to the door of Jaafer ben Yehya, that he might bespeak him of certain occasions of his, and the chamberlain, doubting not but he was the Abdulmelik ben Salih aforesaid, whom Jaafer had charged him admit and that he should suffer none but him to enter, allowed him to go in to his master.

When Jaafer saw him, his reason was like to depart for shame and he knew that the chamberlain had been deceived by the likeness of the name; and Abdulmelik also perceived how the case stood and confusion was manifest to him in Jaafer's face. So he put on a cheerful favour and said, "No harm be upon you! (149) Bring us of these dyed clothes." So they brought him a dyed gown (150) and he put it on and sat discoursing cheerily with Jaafer and jesting with him. Then said he, "Give us to drink of your wine." So they poured him out a pint and he said, "Be ye indulgent with us, for we have no wont of this." Then he chatted and jested with them till Jaafer's breast dilated and his constraint ceased from him and his shamefastness, and he rejoiced in this with an exceeding joy and said to Abdulmelik, "What is thine errand?" Quoth the other, "I come (may God amend thee!) on three occasions, whereof I would have thee bespeak the Khalif; to wit, firstly, I have on me a debt to the amount of a thousand thousand dirhems, (151) which I would have discharged; secondly, I desire for my son the office of governor of a province, whereby his rank may be raised; and thirdly, I would fain have thee marry him to a daughter of the Khalif, for that she is his cousin and he is a match for her." And Jaafer said, "God accomplished! unto thee these three occasions. As for the money, it shall presently be carried to thy house; as for the government, I make thy son viceroy of Egypt; and as for the marriage, I give him to wife such an one, the daughter of our Lord the Commander of the Faithful, at a dowry of such and such a sum. So depart in the assurance of God the Most High."

So Abdulmelik went away to his house, whither he found that the money had foregone him, and on the morrow Jaafer presented himself before the Khalif and acquainted him with what had passed and that he had appointed Abdulmelik's son governor of Egypt and had promised him his daughter in marriage. Er Reshid approved of this and confirmed the appointment and the marriage. [Then he sent for the young man] and he went not forth of the palace of the Khalif till he wrote him the patent [of investiture with the government] of Egypt; and he let bring the Cadis and the witnesses and drew up the contract of marriage.