Though Ali Baba had seen the captain of the robbers in the forest, and had heard him speak, it was impossible to know him in the disguise of an oil merchant. He told him he should be welcome, and immediately opened his gates for the mules to go into the yard. At the same time he called to a slave, and ordered him, when the mules were unloaded, to put them into the stable, and to feed them; and then went to Morgiana, to bid her get a good supper for his guest.
After they had finished supper, Ali Baba, charging Morgiana afresh to take care of his guest, said to her, "To-morrow morning I design to go to the bath before day; take care my bathing linen be ready, give them to Abdalla (which was the slave's name), and make me some good broth against I return." After this he went to bed.
In the meantime the captain of the robbers went into the yard, and took off the lid of each jar, and gave his people orders what to do. Beginning at the first jar, and so on to the last, he said to each man: "As soon as I throw some stones out of the chamber window where I lie, do not fail to come out, and I will immediately join you."
After this he returned into the house, when Morgiana, taking up a light, conducted him to his chamber, where she left him; and he, to avoid any suspicion, put the light out soon after, and laid himself down in his clothes, that he might be the more ready to rise.
Morgiana, remembering Ali Baba's orders, got his bathing linen ready, and ordered Abdalla to set on the pot for the broth; but while she was preparing it the lamp went out, and there was no more oil in the house, nor any candles. What to do she did not know, for the broth must be made. Abdalla, seeing her very uneasy, said, "do not fret and tease yourself, but go into the yard, and take some oil out of one of the jars."
Morgiana thanked Abdalla for his advice, took the oil pot, and went into the yard; when, as she came nigh the first jar, the robber within said softly, "Is it time?"
Though naturally much surprised at finding a man in the jar instead of the oil she wanted, she immediately felt the importance of keeping silence, as Ali Baba, his family, and herself were in great danger; and collecting herself, without showing the least emotion, she answered, "Not yet, but presently." She went quietly in this manner to all the jars, giving the same answer, till she came to the jar of oil.
By this means Morgiana found that her master Ali Baba had admitted thirty-eight robbers into his house, and that this pretended oil merchant was their captain. She made what haste she could to fill her oil pot, and returned into the kitchen, where, as soon as she had lighted her lamp, she took a great kettle, went again to the oil jar, filled the kettle, set it on a large wood fire, and as soon as it boiled, went and poured enough into every jar to stifle and destroy the robber within.
When this action, worthy of the courage of Morgiana, was executed without any noise, as she had projected, she returned into the kitchen with the empty kettle; and having put out the great fire she had made to boil the oil, and leaving just enough to make the broth, put out the lamp also, and remained silent, resolving not to go to rest till, through a window of the kitchen, which opened into the yard, she had seen what might follow.
She had not waited long before the captain of the robbers got up, opened the window, and, finding no light and hearing no noise or any one stirring in the house, gave the appointed signal, by throwing little stones, several of which hit the jars, as he doubted not by the sound they gave. He then listened, but not hearing or perceiving anything whereby he could judge that his companions stirred, he began to grow very uneasy, threw stones again a second and also a third time, and could not comprehend the reason that none of them should answer his signal. Much alarmed, he went softly down into the yard, and going to the first jar, while asking the robber, whom he thought alive, if he was in readiness, smelt the hot boiled oil, which sent forth a steam out of the jar. Hence he knew that his plot to murder Ali Baba and plunder his house was discovered. Examining all the jars, one after another, he found that all his gang were dead; and, enraged to despair at having failed in his design, he forced the lock of a door that led from the yard to the garden, and climbing over the walls made his escape.