The sultan returned to his palace, but would not let Alla ad Deen attend him. When he came there, he found his grand vizier waiting, to whom he related the wonder he had witnessed, with the utmost admiration, and in such terms as left the minister no room to doubt but that the facet was as the sultan related it; though he was the more confirmed in his belief, that Alla ad Deen's palace was the effect of enchantment, as he had told the sultan the first moment he saw it. He was going to repeat the observation, but the sultan interrupted him, and said, "You told me so once before; I see, vizier, you have not forgotten your son's espousals to my daughter." The frank vizier plainly saw how much the sultan was prepossessed, therefore avoided disputes and let him remain in his own opinion. The sultan as soon as he rose every morning went into the closet, to look at Alla ad Deen's palace, and would go many times in a day to contemplate and admire it.

Alla ad Deen did not confine himself in his palace; but took care to shew himself once or twice a week in the town, by going sometimes to one mosque, and sometimes to another, to prayers, or to visit the grand vizier, who affected to pay his court to him on certain days, or to do the principal lords of the court the honour to return their visits after he had regaled them at his palace. Every time he went out, he caused two slaves, who walked by the side of his horse, to throw handfuls of money among the people as he passed through the streets and squares, which were generally on those occasions crowded. Besides, no one came to his palace gates to ask alms, but returned satisfied with his liberality. In short, he so divided his time, that not a week passed but he went either once or twice a hunting, sometimes in the environs of the city, sometimes farther off; at which time the villages through which he passed felt the effects of his generosity, which gained him the love and blessings of the people: and it was common for them to swear by his head. Thus, without giving the ]east umbrage to the sultan, to whom he paid all imaginable respect, Alla ad Deen, by his affable behaviour and liberality, had won the affections of the people, and was more beloved than the sultan himself. With all these good qualities he shewed a courage and a zeal for the public good which could not be sufficiently applauded. He gave sufficient proofs of both in a revolt on the borders of the kingdom; for he no sooner understood that the sultan was levying an army to disperse the rebels than he begged the command of it, which he found not difficult to obtain. As soon as he was empowered, he marched with so much expedition, that the sultan heard of the defeat of the rebels before he had received an account of his arrival in the army. And though this action rendered his name famous throughout the kingdom, it made no alteration in his disposition; but he was as affable after his victory as before.

Alla ad Deen had conducted himself in this manner several years, when the African magician, who undesignedly had been the instrument of raising him to so high a pitch of prosperity, recalled him to his recollection in Africa, whither, after his expedition, he had returned. And though he was almost persuaded that Alla ad Deen must have died miserably in the subterraneous abode where he had left him, yet he had the curiosity to inform himself about his end with certainty; and as he was a great geomancer, he took out of a cupboard a square covered box, which he used in his geomantic observations: then sat himself down on the sofa, set it before him, and uncovered it. After he had prepared and levelled the sand which was in it, with an intention to discover whether or no Alla ad Deen had died in the subterraneous abode, he cast the points, drew the figures, and formed a horoscope, by which, when he came to examine it, he found that Alla ad Deen, instead of dying in the cave, had made his escape, lived splendidly, was in possession of the wonderful lamp, had married a princess, and was much honoured and respected.

The magician no sooner understood by the rules of his diabolical art, that Alla ad Deen had arrived to this height of good fortune, than his face became inflamed with anger, and he cried out in a rage, "This sorry tailor's son has discovered the secret and virtue of the lamp! I believed his death to be certain; but find that he enjoys the fruit of my labour and study! I will, however, prevent his enjoying it long, or perish in the attempt." He was not a great while deliberating on what he should do, but the next morning mounted a barb, set forwards, and never stopped but to refresh himself and horse, till he arrived at the capital of China. He alighted, took up his lodging in a khan, and stayed there the remainder of the day and the night, to refresh himself after so long a journey.

The next day, his first object was to inquire what people said of Alla ad Deen; and, taking a walk through the town, he went to the most public and frequented places, where persons of the best distinction met to drink a certain warm liquor, which he had drunk often during his former visit.

As soon as he had seated himself, he was presented with a cup of it, which he took; but listening at the same time to the discourse of the company on each side of him, he heard them talking of Alla ad Deen's palace. When he had drunk off his liquor, he joined them, and taking this opportunity, inquired particularly of what palace they spoke with so much commendation. "From whence come you?" said the person to whom he addressed himself; "you must certainly be a stranger not to have seen or heard talk of Prince Alla ad Deen's palace" (for he was called so after his marriage with the princess). "I do not say," continued the man, "that it is one of the wonders of the world, but that it is the only wonder of the world; since nothing so grand, rich, and magnificent was ever beheld. Certainly you must have come from a great distance, or some obscure corner, not to have heard of it, for it must have been talked of all over the world. Go and see it, and then judge whether I have told you more than the truth." "Forgive my ignorance," replied the African magician; "I arrived here but yesterday, and came from the farthest part of Africa, where the fame of this palace had not reached when I came away. The business which brought me hither was so urgent, that my sole objets was to arrive as soon as I could, without stopping anywhere, or making any acquaintance. But I will not fail to go and see it; my impatience is so great, I will go immediately and satisfy my curiosity, if you will do me the favour to shew me the way thither."

The person to whom the African magician addressed himself took a pleasure in shewing him the way to Alla ad Deen's palace, and he got up and went thither instantly. When he came to the palace, and had examined it on all sides, he doubted not but that Alla ad Deen had made use of the lamp to build it. Without attending to the inability of a poor tailor's son, he knew that none but the genii, the slaves of the lamp, the attaining of which he had missed, could have performed such wonders; and piqued to the quick at Alla ad Deen's happiness and splendour, he returned to the khan where he lodged.

The next point was to ascertain where the lamp was; whether Alla ad Deen carried it about with him, or where he kept it; and this he was to discover by an operation of geomancy. As soon as he entered his lodging, he took his square box of sand, which he always carried with him when he travelled, and after he had performed some operations, he found that the lamp was in Alla ad Deen's palace, and so great was his joy at the discovery that he could hardly contain himself. "Well," said he, "I shall have the lamp, and defy Alla ad Deen's preventing my carrying it off, and making him sink to his original meanness, from which he has taken so high a flight."

It was Alla ad Deen's misfortune at that time to be absent in the chase for eight days, and only three were expired, which the magician came to know by this means. After he had performed the magical operation, which gave him so much joy, he went to the superintendent of the khan, entered into conversation with him on indifferent subjects, and among the rest, told him he had been to see Alla ad Deen's palace; and after exaggerating on all that he had seen most worthy of observation, added, "But my curiosity leads me farther, and I shall not be satisfied till I have seen the person to whom this wonderful edifice belongs." "That will be no difficult matter," replied the master of the khan, "there is not a day passes but he gives an opportunity when he is in town, but at present he is not at the palace, and has been gone these three days on a hunting-match, which will last eight.

The magician wanted to know no more; he took his leave of the superintendent of the khan, and returning to his own chamber, said to himself, "This is an opportunity I ought by no means to neglect, but must make the best use of it." To that end, he went to a coppersmith, and asked for a dozen copper lamps: the master of the shop told him he had not so many by him, but if he would have patience till the next day, he would have them ready. The magician appointed his time, and desired him to take care that they should be handsome and well polished. After promising to pay him well, he returned to his inn.