Once upon a time, there lived in a village a fine Jewish family with five lively children. They could have been very happy, but unfortunately, they were very poor, and the day finally came when they lacked even a few crusts of bread in the house.
In desperation, the wife came to her husband and said, "Please, go into the city and try to find someone who will lend you some money to buy bread for the children."
"You know I have no relative or friend who can help me. Do you want me to go and beg on the street? Only G-d can help us."
The wife did not reply, but when the hungry children began to cry for food, she again approached her husband and said, "Please go to the city. There perhaps you will find some way of earning money, after all, G-d can always find some way to make a miracle."
So, the husband went to the city, and when he arrived there he uttered a prayer, "Master of the Universe, You provide for all the creatures of the earth, have You nothing for my poor hungry children? Please help me in my hour of need."
His tears must have broken through the Heavens, for a moment later a stranger approached him, and in a calm voice asked, "What is wrong? Why do you weep so?"
The man unburdened his heavy heart to the kind stranger. "Don't despair. I can help you. Take me to the marketplace and sell me as a slave. With the money you get you will be able to purchase whatever you need."
The man was astonished at these words. "What are you suggesting?! How could I possibly accept such a sacrifice from you? Besides, who would believe that such a pauper as I would have such a fine slave?"
"Don't worry. We will exchange clothing. As for my sacrifice, don't worry about that either. I am a master builder, and I won't remain a slave for long. The only thing I ask is that you sell me only to the person I will point out to you and that you give me one gold coin of the coins you will receive for my sale."
So, they proceeded to the marketplace, the stranger dressed in the pauper's clothing. When a rich-looking coach drove up, the "slave" winked in his "master's" direction, indicating that this was the appropriate buyer. The sale was transacted, and the man offered his former "slave" the gold coin. He took it, but then returned it, saying, "Keep this coin for good luck, and G-d bless you and your family with health, wealth, and much joy from you dear children."
The husband returned home to a joyous welcome, laden with all sorts of food and clothing that the family had all but forgotten existed.
Meanwhile, the slave was brought to the royal palace as a special gift for the king. When the king inquired what particular job he was best at, he replied, "I am a master builder."
The king was overjoyed at his reply, for at that time, the king was involved in planning a magnificent new palace, but an architect had not yet been engaged. The slave was given the job of constructing the new edifice. The royal storehouses of gold and silver were made available to the slave as well as the permission to hire as many workers as necessary to complete the job.
"If you complete the construction to my satisfaction within six months, I will reward you handsomely, as well as giving you your freedom," promised the king.
That very evening, the slave, who was Elijah the Prophet, prayed to G-d that His angels descend and build the palace for the king. His prayer was answered, and that same night the palace stood in all its magnificence and glory.
When the king arose and beheld this miracle, he couldn't believe his eyes. He rushed out to inspect every corner of his new palace, stroll through its wondrous gardens, and marvel at the elegantly furnished suites.
Returning to his old residence, the king immediately sent for his slave, but there was no trace of him.
The Jew had prospered through the sale of his "slave," but the thought of what had become of his benefactor haunted him every day. He was filled with guilt for having allowed the kind man to sacrifice himself for him.
Then, one day, as he walked through the market, he saw the man coming towards him. He rushed up to him and embraced him warmly. "How have you been, my dear friend? I was so worried about you all this time!"
The man smiled, "I told you I wouldn't be a slave for long," and he recounted how he had been given to the king and had built a new palace for him and had become a free man once more.
Then Elijah blessed the man again and reminded him to always be kind to the poor, love his fellow man, and walk humbly before G-d. "If you do this and instruct your children in this way, your wealth will not leave you or your children for many generations." And just as the man was about to thank him, he seemed to melt into the surrounding crowd and disappear.