The sultan then sent for an executioner, resolved to put the culprit to death. The executioner on his arrival seized the disguised princess; but what was the surprise of all present, when, on taking off the turban and vest, they discovered her sex. The sultan commanded her to be conducted to his haram, and inquired her story, when having no resource but the truth, she related her adventures.

When the princess had informed the sultan of the treachery of the vizier, the consequent conduct of her father, the distress of her mother, her sisters and herself, their being relieved, and her escape from shipwreck, with what had happened since, he was filled with wonder and compassion, and ordered his daughter to accommodate her in the haram. The love of the latter was now changed to sincere friendship, and under her care and attentions the unfortunate princess in a few months recovered her former beauty. It chanced that the sultan visiting his daughter was fascinated with the charms of the princess, but unwilling to infringe the rules of hospitality concealed his love, till at length he became dangerously ill, when the daughter suspecting the matter, prevailed upon him to reveal the cause of his complaint. She then informed her friend, and entreated her to accept her father in marriage; but the princess said, at the same time weeping bitterly, "Misfortune hath separated me from my family; I know not whether my sisters, my father and my mother, are living, or, if so, what is their condition. How can I be happy or merry, while they are perhaps involved in misery?"

The daughter of the sultan did not refrain from comforting the unfortunate princess, at the same time representing the hopeless condition of her father, till at length she consented to the marriage. This joyful intelligence speedily revived the love-lorn sultan, and the nuptials were celebrated with the utmost joy and magnificence.

The aged sultan and sultana continued to lament the loss of their daughters for some years, when at length the former resolved to travel in search of them, and having left the government in charge of his wife, departed, attended only by his vizier. They both assumed the habit of dervishes, and after a month's uninterrupted travelling reached a large city extending along the sea coast, close upon which the sultan of it had erected a magnificent pleasure house, where the pretended dervishes beheld him sitting in one of the pavilions with his two sons, one six and the other seven years old. They approached, made their obeisance, and uttered a long invocation, agreeably to the usage of the religious, for his prosperity. The sultan returned their compliment, desired them to be seated, and having conversed with them till evening, dismissed them with a present, when they repaired to a caravanserai, and hired an apartment. On the following day, after amusing themselves with viewing the city, they again repaired to the beach, and saw the sultan sitting with his children, as before. While they were admiring the beauty of the structure, the younger prince, impelled by an unaccountable impulse, came up to them, gazed eagerly at them, and when they retired followed them to their lodging, which they did not perceive till he had entered with them and sat down. The old sultan was astonished at the child's behaviour, took him in his arms, kissed and fondled him, after which he desired him to return to his parents, but the boy insisted upon staying, and remained four days, during which the pretended dervishes did not stir from their caravanserai.

The sultan missing his son, supposed that he had gone to his mother, and she imagined that he was still with his father; but on the latter entering the haram the loss was discovered. Messengers were despatched every way, but no tidings of the boy could be obtained. The miserable parents now supposed that he had fallen into the sea and was drowned. Nets were dragged, and divers employed for three days, but in vain. On the fifth day orders were issued to search every house in the city, when the infant prince was at length discovered at the caravanserai in the apartment of the pretended dervishes, who were ignominiously dragged before the sultan.

The sultan was transported with joy at the recovery of his son, but supposing the dervishes had meant to steal him away, he ordered them instantly to be put to death. The executioners seized them, bound their hands behind them, and were going to strike, when the child with loud outcries ran up, and clinging to the knees of the elder victim could not be forced away. The sultan was astonished, and ordering the execution for the present to be delayed, went and informed the mother of the child of his wonderful behaviour.

The sultana, on hearing it, was no less surprised than the sultan, and felt a curiosity to hear from the dervish himself on what account he had enticed away her son. She said, "It is truly extraordinary that the boy should express such affection for a strange dervish. Send for him to your closet, and order him to relate his adventures, to which I will listen from behind a curtain."

The sultan sent for the supposed dervish, and commanding all his attendants to retire, withdrew with him into his closet, and desired him to be seated; after which he said, "Wicked dervish, what could have induced thee to entice away my son, or to visit my kingdom?" He replied, "Heaven knows, O sultan, I did not entice him. The boy followed me to my lodging, when I said, 'My son, return to thy father,' but he would not; and I remained in continual dread till what was decreed occurred." The sultan was softened, spoke kindly to him, and begged him to relate his adventures, when the pretended dervish wept, and said, "My history is a wonderful one. I had a friend whom I left as my agent and guardian to my family, while I was performing a pilgrimage to Mecca; but had scarcely left my house ten days, when accidently seeing my wife he endeavoured to debauch her, and sent an old woman with a rich present to declare his adulterous love. My wife was enraged, and put the infamous messenger to death. He sent a second, and a third, whom she also killed."

These last words were scarcely spoken, when the sultana bursting from her concealment ran up to the dervish, fell upon his neck, and embraced him: upon which, the sultan her husband was enraged, put his hand to his cimeter, and exclaimed, "What means this shameless behaviour?" The sultana, at once laughing and crying with rapture, informed him that the supposed dervish was her father: upon which the sultan also fell at his feet and welcomed him. He then ordered the other dervish his vizier to be released, commanded royal robes to be brought for his father-in-law, and a suite of apartments in the palace to be prepared for his reception, with an attendance befitting his dignity.

When the old sultan had spent some time with his youngest daughter thus happily recovered, he became anxious to search after the others, and signified his intention of departing; but his son-in-law declared that he would accompany him on the expedition with a number of his nobles, and an army, lest some fatal accident might occur from his being unattended. Preparations were accordingly made for march, the two sultans encamped without the city, and in a few days began their expedition, which proved successful to their wishes. The aged monarch having recovered his children retired to his own kingdom, where he reigned prosperously till the angel of death summoned him to Paradise.