It was agreed among them that they were to meet in the market-place at the dusk of evening, and that the captain and the robber who had discovered the house were to go there first, to find out to whom it belonged. When they arrived in the street, having a lantern with them, they began to examine the doors, and found to their confusion and astonishment that ten doors were marked exactly alike. The robber, who was the captain's guide, could not say a word in explanation of this mystery; and when the disappointed troop got back to the forest, his enraged companions ordered him to be put to death.
Another now offered himself upon the same conditions as the former; and having bribed Mustapha, and discovered the house, he made a mark with the dark red chalk upon the door, in a part that was not in the least conspicuous; and carefully examined the surrounding doors, to be certain that no such marks were upon them. But nothing could escape the prying eyes of Morgiana; scarcely had the robber departed, when she discovered the red mark; and getting some red chalk, she marked seven doors on each side, precisely in the same place and in the same manner. The robber, valuing himself highly upon the precautions he had taken, triumphantly conducted his captain to the spot; but great indeed was his confusion and dismay when he found it impossible to say which, among fifteen houses marked exactly alike, was the right one. The captain, furious with his disappointment, returned again with the troop to the forest; and the second robber was also condemned to death.
The captain having lost two of his troop, judged that their hands were more active than their heads in such services; and he resolved to employ no other of them, but to go himself upon the business. Accordingly he repaired to the city and addressed himself to the cobbler Mustapha, who, for six pieces of gold, readily performed the services for him he had done for the other two strangers. The captain, much wiser than his men, did not amuse himself with setting a mark upon the door, but attentively considered the house, counted the number of windows, and passed by it very often, to be certain that he should know it again.
He then returned to the forest, and ordered his troop to go into the town, and buy nineteen mules and thirty-eight large jars, one full of oil and the rest empty. In two or three days the jars were bought, and all things in readiness; and the captain having put a man into each jar, properly armed, the jars being rubbed on the outside with oil, and the covers having holes bored in them for the men to breathe through, loaded his mules, and in the habit of an oil-merchant entered the town in the dusk of the evening. He proceeded to the street where Ali Baba dwelt, and found him sitting in the porch of his house. "Sir," said he to Ali Baba, "I have brought this oil a great way to sell, and am too late for this day's market. As I am quite a stranger in this town, will you do me the favor to let me put my mules into your court-yard, and direct me where I may lodge to-night?"
Ali Baba, who was a very good-natured man, welcomed the pretended oil-merchant very kindly, and offered him a bed in his own house; and having ordered the mules to be unloaded in the yard, and properly fed, he invited his guest in to supper. The captain, having seen the jars placed ready in the yard, followed Ali Baba into the house, and after supper was shown to the chamber where he was to sleep.
It happened that Morgiana was obliged to sit up later that night than usual, to get ready her master's bathing linen for the following morning; and while she was busy about the fire, her lamp went out, and there was no more oil in the house. After considering what she could possibly do for a light, she recollected the thirty-eight oil jars in the yard and determined to take a little oil out of one of them for her lamp. She took her oil pot in her hand and approached the first jar; the robber within said, "Is it time, captain?"
Any other slave, on hearing a man in an oil jar, would have screamed out; but the prudent Morgiana instantly recollected herself, and replied softly, "No, not yet; lie still till I call you." She passed on to every jar, receiving the same question and making the same answer, till she came to the last, which was really filled with oil.
Morgiana was now convinced that this was a plot of the robbers to murder her master, Ali Baba; so she ran back to the kitchen and brought out a large kettle, which she filled with oil, and set it on a great wood fire; and as soon as it boiled she went and poured into the jars sufficient of the boiling oil to kill every man within them. Having done this she put out her fire and her lamp, and crept softly to her chamber.
The captain of the robbers, finding everything quiet in the house, and perceiving no light anywhere, arose and went down into the yard to assemble his men. Coming to the first jar, he felt the steam of the boiled oil; he ran hastily to the rest and found every one of his troop put to death in the same manner. Full of rage and despair at having failed in his design, he forced the lock of a door that led into the garden and made his escape over the walls.
On the following morning Morgiana related to her master, Ali Baba, his wonderful deliverance from the pretended oil-merchant and his gang of robbers. Ali Baba at first could scarcely credit her tale; but when he saw the robbers dead in the jars, he could not sufficiently praise her courage and sagacity; and without letting any one else into the secret, he and Morgiana the next night buried the thirty-seven thieves in a deep trench at the bottom of the garden. The jars and mules, as he had no use for them, were sent from time to time to the different markets and sold.