The princess, who knew not the value of this lamp, and the interest that Aladdin had to keep it safe, entered into the pleasantry, and commanded a slave to take it and make the exchange. The slave obeyed, went out of the hall, and no sooner got to the palace gates than he saw the African magician, called to him, and showing him the old lamp, said, "Give me a new lamp for this."
The magician never doubted but this was the lamp he wanted. There could be no other such in this palace, where every utensil was gold or silver. He snatched it eagerly out of the slave's hand, and thrusting it as far as he could into his breast, offered him his basket, and bade him choose which he liked best. The slave picked out one and carried it to the princess; but the change was no sooner made than the place rung with the shouts of the children, deriding the magician's folly.
The African magician stayed no longer near the palace, nor cried any more, "New lamps for old ones," but made the best of his way to his khan. His end was answered, and by his silence he got rid of the children and the mob.
As soon as he was out of sight of the two palaces, he hastened down the least-frequented streets; and having no more occasion for his lamps or basket, set all down in a spot where nobody saw him; then going down another street or two, he walked till he came to one of the city gates, and pursuing his way through the suburbs, which were very extensive, at length reached a lonely spot, where he stopped till the darkness of the night, as the most suitable time for the design he had in contemplation. When it became quite dark, he pulled the lamp out of his breast and rubbed it. At that summons the genie appeared, and said, "What wouldst thou have? I am ready to obey thee as thy slave, and the slave of all those who have that lamp in their hands, both I and the other slaves of the lamp." "I command thee," replied the magician, "to transport me immediately, and the palace which thou and the other slaves of the lamp have built in this city, with all the people in it, to Africa." The genie made no reply, but with the assistance of the other genies, the slaves of the lamp, immediately transported him and the palace, entire, to the spot whither he had been desired to convey it.
Early the next morning, when the sultan, according to custom, went to contemplate and admire Aladdin's place, his amazement was unbounded to find that it could nowhere be seen. He could not comprehend how so large a palace which he had seen plainly every day for some years, should vanish so soon, and not leave the least remains behind. In his perplexity he ordered the grand vizier to be sent for with expedition.
The grand vizier, who, in secret, bore no good will to Aladdin, intimated his suspicion that the palace was built by magic, and that Aladdin had made his hunting excursion an excuse for the removal of his palace with the same suddenness with which it had been erected. He induced the sultan to send a detachment of his guard, and to have Aladdin seized as a prisoner of state. On his son-in-law being brought before him, he would not hear a word from him, but ordered him to be put to death. The decree caused so much discontent among the people, whose affection Aladdin had secured by his largesses and charities, that the sultan, fearful of an insurrection, was obliged to grant him his life. When Aladdin found himself at liberty, he again addressed the sultan: "Sire, I pray you to let me know the crime by which I have thus lost the favour of thy countenance." "Your crime!" answered the sultan, "wretched man! do you not know it? Follow me, and I will show you." The sultan then took Aladdin into the apartment from whence he was wont to look at and admire his palace, and said, "You ought to know where your palace stood; look, mind, and tell me what has become of it." Aladdin did so, and being utterly amazed at the loss of his palace, was speechless. At last recovering himself, he said, "It is true, I do not see the palace. It is vanished; but I had no concern in its removal. I beg you to give me forty days, and if in that time I cannot restore it, I will offer my head to be disposed of at your pleasure." "I give you the time you ask, but at the end of the forty days, forget not to present yourself before me."
Aladdin went out of the sultan's palace in a condition of exceeding humiliation. The lords who had courted him in the days of his splendour, now declined to have any communication with him. For three days he wandered about the city, exciting the wonder and compassion of the multitude by asking everybody he met if they had seen his palace, or could tell him anything of it. On the third day he wandered into the country, and as he was approaching a river, he fell down the bank with so much violence that he rubbed the ring which the magician had given him so hard by holding on the rock to save himself, that immediately the same genie appeared whom he had seen in the cave where the magician had left him. "What wouldst thou have?" said the genie, "I am ready to obey thee as thy slave, and the slave of all those that have that ring on their finger; both I and the other slaves of the ring."