Aladdin, who knew that all the sultan's endeavors to make this window like the rest were in vain, sent for the jewellers and goldsmiths, and not only commanded them to desist from their work, but ordered them to undo what they had begun, and to carry all their jewels back to the sultan and to the vizier. They undid in a few hours what they had been six weeks about, and retired, leaving Aladdin alone in the hall. He took the lamp, which he carried about him, rubbed it, and presently the genie appeared. "Genie," said Aladdin, "I ordered thee to leave one of the four- and-twenty windows of this hall imperfect, and thou hast executed my commands punctually; now I would have thee make it like the rest." The genie immediately disappeared. Aladdin went out of the hall, and returning soon after, found the window, as he wished it to be, like the others.

In the meantime, the jewellers and goldsmiths repaired to the palace, and were introduced into the sultan's presence, where the chief jeweller presented the precious stones which he had brought back. The sultan asked them if Aladdin had given them any reason for so doing, and they answering that he had given them none, he ordered a horse to be brought, which he mounted, and rode to his son-in-law's palace, with some few attendants on foot, to inquire why he had ordered the completion of the window to be stopped. Aladdin met him at the gate, and without giving any reply to his inquiries conducted him to the grand saloon, where the sultan, to his great surprise, found the window which was left imperfect to correspond exactly with the others. He fancied at first that he was mistaken, and examined the two windows on each side, and afterward all the four and twenty; but when he was convinced that the window which several workmen had been so long about was finished in so short a time, he embraced Aladdin and kissed him between his eyes. "My son," said he, "what a man you are to do such surprising things always in the twinkling of an eye! There is not your fellow in the world; the more I know, the more I admire you."

The sultan returned to the palace, and after this went frequently to the window to contemplate and admire the wonderful palace of his son-in-law.

Aladdin did not confine himself in his palace, but went with much state, sometimes to one mosque, and sometimes to another, to prayers, or to visit the grand vizier, or the principal lords of the court. 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. This generosity gained him the love and blessings of the people, and it was common for them to swear by his head. Thus Aladdin, while he paid all respect to the sultan, won by his affable behavior and liberality the affections of the people.

Aladdin had conducted himself in this manner several years, when the African magician, who had for some years dismissed him from his recollection, determined to inform himself with certainty whether he perished, as he supposed, in the subterranean cave or not. After he had resorted to a long course of magic ceremonies, and had formed a horoscope by which to ascertain Aladdin's fate, what was his surprise to find the appearances to declare that Aladdin, instead of dying in the cave, had made his escape, and was living in royal splendor, by the aid of the genie of the wonderful lamp!

On the very next day, the magician set out and travelled with the utmost haste to the capital of China, where, on his arrival, he took up his lodging in a khan.

He then quickly learned about the wealth, charities, happiness, and splendid palace of Prince Aladdin. Directly he saw the wonderful fabric, he knew that none but the genies, the slaves of the lamp, could have performed such wonders; and piqued to the quick at Aladdin's high estate, he returned to the khan.

On his return he had recourse to an operation of geomancy to find out where the lamp was—whether Aladdin carried it about with him, or where he left it. The result of his consultation informed him, to his great joy, that the lamp was in the palace. "Well," said he, rubbing his hands in glee, "I shall have the lamp, and I shall make Aladdin return to his original mean condition."

The next day the magician learned, from the chief superintendent of the khan where he lodged, that Aladdin had gone on a hunting expedition, which was to last for eight days, of which only three had expired. The magician wanted to know no more. He resolved at once on his plans. 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.

The next day the magician called for the twelve lamps, paid the man his full price, put them into a basket hanging on his arm, and went directly to Aladdin's palace. As he approached, he began crying, "Who will change old lamps for new ones?" As he went along, a crowd of children collected, who hooted, and thought him, as did all who chanced to be passing by, a madman or a fool, to offer to change new lamps for old ones.