This section is from the book "Stories From The Thousand And One Nights", by Edward William Lane and Stanley Lanepoole. Also available from Amazon: Stories From Thousand And One Nights: The Arabian Nights' Entertainments.
I rebelled against Suleyman the son of Da'ud; I and Sakhr the Jinni; and he sent to me his Wezir, Asaf the son of Barkhiya, who came upon me forcibly, and took me to him in bonds, and placed me before him: and when Suleyman saw me, he offered up a prayer for protection against me, and exhorted me to embrace the faith, and to submit to his authority; but I refused; upon which he called for this bottle, and confined me in it, and closed it upon me with the leaden stopper, which he stamped with the Most Great Name: he then gave orders to the Jinn, who carried me away, and threw me into the midst of the sea. There I remained a hundred years; and I said in my heart, Whosoever shall liberate me, I shall enrich him for ever:-but the hundred years passed over me, and no one liberated me: and I entered upon another hundred years; and I said, Whosoever shall liberate me, I will open to him the treasures of the earth;-but no one did so: and four hundred years more passed over me, and I said, Whosoever shall liberate me, I will perform for him three wants:-but still no one liberated me. I then fell into a violent rage, and said within myself, Whosoever shall liberate me now, I will kill him; and only suffer him to choose in what manner he will die. And lo, now thou hast liberated me, and I have given thee thy choice of the manner in which thou wilt die.
When the fisherman had heard the story of the 'Efrit, he exclaimed, O Allah! that I should not have liberated thee but in such a time as this! Then said he to the 'Efrit, Pardon me, and kill me not, and so may God pardon thee; and destroy me not, lest God give power over thee to one who will destroy thee. The Marid answered, I must positively kill thee; therefore choose by what manner of death thou wilt die. The fisherman then felt assured of his death; but he again implored the 'Efrit, saying, Pardon me by way of gratitude for my liberating thee.-Why, answered the 'Efrit, I am not going to kill thee but for that very reason, because thou hast liberated me.-O Sheykh of the 'Efrits, said the fisherman, do I act kindly towards thee, and dost thou recompense me with baseness ? But the proverb lieth not that saith, We did good to them, and they returned us the contrary; and such, by my life, is the conduct of the wicked. Thus he who acteth kindly to the undeserving is recompensed in the same manner as the aider of Umm-'Amir.*
The 'Efrit, when he heard these words, answered by saying, Covet not life, for thy death is unavoidable. Then said the fisherman within himself, This is a Jinni, and I am a man; and God hath given me sound reason; therefore, I will now plot his destruction with my art and reason, like as he hath plotted with his cunning and perfidy. So he said to the 'Efrit, Hast thou determined to kill me ? He answered, Yes. Then said he, By the Most Great Name engraved upon the seal of Suleyman, I will ask thee one question; and wilt thou answer it to me truly ? On hearing the mention of the Most Great Name, the 'Efrit was agitated, and trembled, and replied, Yes; ask, and be brief. The fisherman then said, How wast thou in this bottle? It will not contain thy hand or thy foot; how then can it contain thy whole body ?-Dost thou not believe that I was in it? said the 'Efrit. The fisherman answered, I will never believe thee until I see thee in it. Upon this, the 'Efrit shook, and became converted into smoke, which rose to the sky and then became condensed, and entered the bottle by little and little, until it was all enclosed; when the fisherman hastily snatched the sealed leaden stopper, and, having replaced it in the mouth of the bottle, called out to the 'Efrit, and said, Choose in what manner of death thou wilt die. I will assuredly throw thee here into the sea, and build me a house on this spot; and whosoever shall come here, I will prevent his fishing in this place, and will say to him, Here is an 'Efrit, who to any person that liberates him, will propose various kinds of death, and then give him his choice of one of them. On hearing these words of the fisherman, the 'Efrit endeavoured to escape; but could not, finding himself restrained by the impression of the seal of Suleyman, and thus imprisoned by the fisherman as the vilest and filthiest and least of 'Efrits. The fisherman then took the bottle to the brink of the sea. The 'Efrit exclaimed, Nay! nay!-to which the fisherman answered, Yea, without fail! yea, without fail! The Marid then addressing him with a soft voice and humble manner, said, What dost thou intend to do with me, O fisherman ? He answered, I will throw thee into the sea; and if thou hast been there a thousand and eight hundred years, I will make thee to remain there until the hour of judgment. Did I not say to thee, Spare me, and so may God spare thee; and destroy me not, lest God destroy thee? But thou didst reject my petition, and wouldst nothing but treachery; therefore God hath caused thee to fall into my hand, and I have betrayed thee.-Open to me, said the 'Efrit, that I may confer benefits upon thee. The fisherman replied, Thou liest, thou accursed! I and thou are like the Wezir of King Yunan and the sage Duban.-What, said the 'Efrit, was the case of the Wezir Yunan and the sage Duban, and what is their story? The fisherman answered as follows:
»The hyena.
 
Continue to: