Ali Baba went boldly into the cave, and collected as much of the gold coin, which was in bags, as he thought his three asses could carry. When he had loaded them with the bags, he laid wood over them in such a manner that they could not be seen. When he had passed in and out as often as he wished, he stood before the door, and pronouncing the words, "Shut, Sesame!" the door closed of itself. He then made the best of his way to town.
When Ali Baba got home, he drove his asses into a little yard, shut the gates very carefully, threw off the wood that covered the panniers, carried the bags into the house, and ranged them in order before his wife. He then emptied the bags, which raised such a great heap of gold as dazzled his wife's eyes, and then he told her the whole adventure from beginning to end, and, above all, recommended her to keep it secret.
The wife rejoiced greatly at their good-fortune, and would count all the gold piece by piece. "Wife," replied Ali Baba, "you do not know what you undertake, when you pretend to count the money; you will never have done. I will dig a hole and bury it. There is no time to be lost." "You are in the right, husband," replied she; "but let us know, as nigh as possible, how much we have. I will borrow a small measure, and measure it while you dig the hole."
Away the wife ran to her brother-in-law Cassim, who lived just by, and, addressing herself to his wife, desired her to lend her a measure for a little while. Her sister-in-law asked her whether she would have a great or a small one. The other asked for a small one. She bade her stay a little, and she would readily fetch one.
The sister-in-law did so, but as she knew Ali Baba's poverty, she was curious to know what sort of grain his wife wanted to measure, and, artfully putting some suet at the bottom of the measure, brought it to her, with the excuse that she was sorry that she had made her stay so long, but that she could not find it sooner.
Ali Baba's wife went home, set the measure upon the heap of gold, filled it, and emptied it often upon the sofa, till she had done, when she was very well satisfied to find the number of measures amounted to so many as they did, and went to tell her husband, who had almost finished digging the hole. While Ali Baba was burying the gold, his wife, to show her exactness and diligence to her sister-in-law, carried the measure back again, but without taking notice that a piece of gold had stuck to the bottom. "Sister," said she, giving it to her again, "you see that I have not kept your measure long. I am obliged to you for it, and return it with thanks."
As soon as Ali Baba's wife was gone, Cassim's wife looked at the bottom of the measure, and was in inexpressible surprise to find a piece of gold sticking to it. Envy immediately possessed her breast. "What!" said she, "has Ali Baba gold so plentiful as to measure it? Whence has he all this wealth?"
Cassim, her husband, was at his counting-house. When he came home his wife said to him, "Cassim, I know you think yourself rich, but Ali Baba is infinitely richer than you. He does not count his money, but measures it." Cassim desired her to explain the riddle, which she did by telling him the stratagem she had used to make the discovery, and showed him the piece of money, which was so old that they could not tell in what prince's reign it was coined.
Cassim, after he had married the rich widow, had never treated Ali Baba as a brother, but neglected him; and now, instead of being pleased, he conceived a base envy at his brother's prosperity. He could not sleep all that night, and went to him in the morning before sunrise. "Ali Baba," said he, "I am surprised at you! you pretend to be miserably poor, and yet you measure gold. My wife found this at the bottom of the measure you borrowed yesterday."
By this discourse, Ali Baba perceived that Cassim and his wife, through his own wife's folly, knew what they had so much reason to conceal; but what was done could not be undone. Therefore, without showing the least surprise or trouble, he confessed all, and offered his brother part of his treasure to keep the secret.