When the cook heard this, he said in himself, 'It will do me no hurt if I imprison him and shackle him and bring him what he may work at. If he tell truth, I will let him live, and if he prove a liar, I will slay him.' So he took a pair of stout shackles and clapping them on Selim's legs, imprisoned him within his house and set over him one who should guard him. Then he questioned him of what tools he needed to work withal. Selim set forth to him that which he required, and the cook went out from him and presently returning, brought him all he needed. So Selim sat and wrought at his craft; and he used every day to earn two dinars; and this was his wont and usance with the cook, whilst the latter fed him not but half his fill.

To return to his sister Selma. She awaited him till the last of the day, but he came not; and she awaited him a second day and a third and a fourth, yet there came no news of him, wherefore she wept and beat with her hands on her breast and bethought her of her affair and her strangerhood and her brother's absence; and she recited the following verses:

Peace on thee! Would our gaze might light on thee once more! So
should our hearts be eased and eyes no longer sore.
Thou only art the whole of our desire; indeed Thy love is hid
within our hearts' most secret core.

She abode awaiting him thus till the end of the month, but discovered no tidings of him neither happened upon aught of his trace; wherefore she was troubled with an exceeding perturbation and despatching her servants hither and thither in quest of him, abode in the sorest that might be of grief and concern. When it was the beginning of the new month, she arose in the morning and bidding cry him throughout the city, sat to receive visits of condolence, nor was there any in the city but betook himself to her, to condole with her; and they were all concerned for her, nothing doubting but she was a man.

When three nights had passed over her with their days of the second month, she despaired of him and her tears dried not up. Then she resolved to take up her abode in the city and making choice of a dwelling, removed thither. The folk resorted to her from all parts, to sit with her and hearken to her speech and witness her good breeding; nor was it but a little while ere the king of the city died and the folk fell out concerning whom they should invest with the kingship after him, so that strife was like to betide between them. However, the men of judgment and understanding and the folk of experience counselled them to make the youth king who had lost his brother, for that they doubted not but Selma was a man. They all consented unto this and betaking themselves to Selma, proffered her the kingship. She refused, but they were instant with her, till she consented, saying in herself, 'My sole desire in [accepting] the kingship is [to find] my brother.' Then they seated her on the throne of the kingdom and set the crown on her head, whereupon she addressed herself to the business of administration and to the ordinance of the affairs of the people; and they rejoiced in her with the utmost joy.

Meanwhile, Selim abode with the cook a whole year's space, earning him two dinars every day; and when his affair was prolonged, the cook inclined unto him and took compassion on him, on condition that, if he let him go, he should not discover his fashion to the Sultan, for that it was his wont every little while to entrap a man and carry him to his house and slay him and take his money and cook his flesh and give it to the folk to eat. So he said to him, 'O youth, wilt thou that I release thee from this thy plight, on condition that thou be reasonable and discover not aught of thine affair ever?' And Selim answered, 'I will swear to thee by whatsoever oath thou choosest that I will keep thy secret and will not speak one syllable against thy due, what while I abide on life.' Quoth the cook, 'I purpose to send thee forth with my brother and cause thee travel with him on the sea, on condition that thou be unto him a boughten slave; and when he cometh to the land of Hind, he shall sell thee and thus wilt thou be delivered from prison and slaughter.' And Selim said, 'It is well: be it as thou sayst, may God the Most High requite thee with good!'

Therewithal the cook equipped his brother and freighting him a ship, embarked therein merchandise. Then he committed Selim unto him and they set out and departed with the ship. God decreed them safety, so that they arrived [in due course] at the first city [of the land of Hind], the which is known as El Mensoureh, and cast anchor there. Now the king of that city had died, leaving a daughter and a widow, who was the quickest-witted of women and gave out that the girl was a boy, so that the kingship might be stablished unto them. The troops and the amirs doubted not but that the case was as she avouched and that the princess was a male child; so they obeyed her and the queen mother took order for the matter and used to dress the girl in man's apparel and seat her on the throne of the kingship, so that the folk might see her. Accordingly, the grandees of the kingdom and the chief officers of the realm used to go in to her and salute her and do her service and go away, nothing doubting but she was a boy.

On this wise they abode months and years and the queen-mother ceased not to do thus till the cook's brother came to the town in his ship, and with him Selim. So he landed with the youth and showed him to the queen, [that she might buy him]. When she saw him, she augured well of him; so she bought him from the cook's brother and was kind to him and entreated him with honour. Then she fell to proving him in his parts and making assay of him in his affairs and found in him all that is in kings' sons of understanding and breeding and goodly manners and qualities.

So she sent for him in private and said to him, 'I purpose to do thee a service, so thou canst but keep a secret.' He promised her all that she desired and she discovered to him her secret in the matter of her daughter, saying, 'I will marry thee to her and commit to thee the governance of her affair and make thee king and ruler over this city.' He thanked her and promised to uphold all that she should order him, and she said to him, 'Go forth to such an one of the neighbouring provinces privily.' So he went forth and on the morrow she made ready bales and gear and presents and bestowed on him a great matter, all of which they loaded on the backs of camels.

Then she gave out among the folk that the king's father's brother's son was come and bade the grandees and troops go forth to meet him. Moreover, she decorated the city in his honour and the drums of good tidings beat for him, whilst all the king's household [went out to meet him and] dismounting before him, [escorted him to the city and] lodged him with the queen-mother in her palace. Then she bade the chiefs of the state attend his assembly; so they presented themselves before him and saw of his breeding and accomplishments that which amazed them and made them forget the breeding of those who had foregone him of the kings.