An interesting parallel can be drawn between Ali Baba and the robber captain; are they really that different? Marjaneh then told him all she had done, from the first observing the mark upon the house, to the destruction of the robbers, and the flight of their captain. Cassim was from home, so she begged of his wife the loan of a small measure, naming for choice the smallest. Meanwhile the Captain of the thieves having escaped with his life, fled to the forest in hot wrath and sore irk of mind; and his senses were scattered and the colour of his visage vanished like ascending smoke. Then she unbound the kerchief and bade me sew together first the corpse and then the shroud, which having done she again blindfolded me and led me back to the stead whence she had brought me and left me there. But the captain observed that the next door was chalked in the same manner, and in the same place; and showing it to his guide, asked him which house it was, that, or the first. Suddenly, the rock began to move.
Ali Baba tried the secret password and the door opened. Another robber was dispatched, and, having won over Baba Mustapha, marked the house in red chalk; but Morgiana being again too clever for them, the second messenger was put to death also. As soon as Abdalla saw that Ali Baba and Cogia Houssain had done talking, he began to play on the tabor, and accompanied it with an air, to which Morgiana, who was an excellent performer, danced in such a manner as would have created admiration in any company. Cassim was married to a rich wife and lived in plenty, while Ali Baba had to maintain his wife and children by cutting wood in a neighboring forest and selling it in the town. However, the thieves paid scant regard to the estrays nor cared they to secure them, but only wondered by what means they had wandered so far from the town. Two men must have known it; we have killed one, we must now find the other.
Ali Baba put a piece of gold into the tabor, as did also his son; and Khoja Hoseyn, seeing that she was coming to him, had pulled his purse out of his bosom to make her a present; but while he was putting his hand into it, Marjaneh plunged the poniard into his heart. She ran to Ali Baba in great alarm, and said: I believe, brother-in-law, that you know Kasim is gone to the forest, and upon what account; it is now night, and he has not returned; I am afraid some misfortune has happened to him. However, the thief has been seen by Morgiana and she, loyal to her master, foils his plan by marking all the houses in the neighbourhood with a similar marking. Ali Baba knocked at the door, which was opened by Morgiana, a clever, intelligent slave, who was fruitful in inventions to meet the most difficult circumstances. Morgiana, however, spots the mark and senses that something is wrong. .
It so chanced one day when the robbers, as was their wont, came to the treasure cave that they marveled exceedingly to find nor sign nor trace of Kasim's body, whilst they observed that much of gold had been carried off. She, discovering them to be full of gold, feared that her husband had stolen them, and began sorrowfully to reproach him; but Ali Baba soon put her mind at rest on that score, and having poured all the gold into a great heap upon the floor he sat down at her side to consider how well it looked. The robbers trooped inside, dragging their sacks. When the captain saw them all ready, he put himself at their head, and they returned the way they had come. There they saw piled by the door the treasure which Cassim had sought to carry away; but while restoring this to its place they failed altogether to detect the earlier loss which Ali Baba had caused them.
They had no sooner taken this resolution than they put it in execution; and when they had nothing more to detain them, left the place of their hoards well closed. Upon discovering the exposure of the original plan, Ali had decided to make a few changes: most of the thieves came disguised in the crowd; some others were hidden in jars which were not brought before the Khan. I question, even if it were somewhat lighter, whether you could see to stitch. When this was done, Ali Baba hid the jars and weapons; and as he had no occasion for the mules, he sent them at different times to be sold in the market by his slave. The poverty-stricken stick-gatherer rubbed his eyes in disbelief. Furthermore, when she eyed him attentively, she espied a dagger hidden under his robe.
Look now into all the jars, one by one from first to last. They bury them, and Ali Baba shows his gratitude by giving Morgiana her freedom. Before long the captain of the robbers awoke from the short sleep which he had allowed himself, and finding that all was silent in the house, he rose softly and opened the winòow. Seeing that the design had failed, the captain returned to the market-place, and having passed the word for his troop to go back in the same way as they had come, he himself set the example of retreat. Thus did this slave girl by her subtle wit make a clean end of all, noiselessly and unknown even to the dwellers in the house.
Having loaded one of his asses with them, he covered them over with wood. Where, then, I would know, has the miserable wretch obtained it? Her sister-in-law asked her whether she would have a great or a small one. My uncle hath heard much of thee and of thy goodness meward, and desireth with exceeding desire to see thee, so shouldst thou consent to enter and visit him, I shall be truly glad and thankful to thee. When the thieves are gone, Ali Baba enters the cave himself and discreetly takes a single bag of gold coins home. He did not set any particular mark on the house, but examined and observed it so carefully, by passing often by it, that it was impossible for him to mistake it.
Women in these stories often cause messes through their foolishness; Morgiana, however, is the stark opposite. So when he had clean disappeared I was assured that, the door being double-locked, he had scaled the wall and dropped into the garden and made his escape. When the thieves return to find they have been duped, the Captain kills the man who had found the house, and sends another thief to find it. After the death of their father, the greedy Cassim marries a wealthy woman and becomes well-to-do, building on their father's business - but Ali Baba marries a poor woman and settles into the trade of a woodcutter. Cassim learned of the treasure and demanded to see it. Then she told him the stratagem she had used to make the discovery, and shewed him the piece of money, which was so old that they could not tell in what princes reign it was coined. Albeit he was affrighted beyond measure of affright, he wrapped the quarters in two cloths and laid them upon one of his asses, hiding them carefully with sticks and fuel that none might see them.
I knew him, and you now find that my suspicion was not groundless. Morgiana heard and saw all this, and, rejoicing at her success, went to bed and fell asleep. The thieves find him there, and kill him. Soon, the thieves came back, and Kassim was killed by the angry thieves. He told him he should be welcome, and immediately opened his gates for the mules to go into the yard.