Why Solomon Had to Trap the King of Demons to Build the Temple
No iron tool could touch the Temple stones, so Benaiah filled Ashmedai's mountain cistern with wine to force the secret of the Shamir from him.
Table of Contents
When Solomon set out to build the Temple in Jerusalem, a command in the Torah stopped his stonemasons cold. Scripture warned that lifting an iron blade on the altar defiled it (Exodus 20:25), and no hammer, axe, or iron tool could be heard inside the First Temple while it rose (1 Kings 6:7). Iron forged the swords of war, so Solomon had to split a mountain of stone for a house of peace without a single metal blade.
Click for full size
The Worm Created at Twilight
Solomon turned to the Sages and asked, "How shall I shape these stones without iron?" They remembered an ancient creature named the Shamir, one of the ten things created at twilight on the sixth day of creation. No larger than a grain of barley, the worm could split the hardest stone at a touch, and Moses had once used it to cut the precious gems of the Ephod, the High Priest's breastplate.
No human knew where the Shamir hid, so the Sages told Solomon to summon a male and female demon. He turned his signet ring engraved with the Holy Name, and two trembling demons appeared. They did not know the worm's location, though they named Ashmedai, king of the demons, who lived on a distant mountain beside a sealed water pit. Every morning he rose to study in the heavenly academy, and every afternoon he came down to study in the earthly academy, before returning to check his seal, drink, reseal the pit, and vanish.
Wine in the Mountain Cistern
Solomon sent his captain, Benaiah son of Jehoiada, into the wilderness with wine, skins, a fleece of wool, and a chain and ring engraved with the Shem HaMeforash (שם המפורש), the Ineffable Name of God. Benaiah dug a lower pit to drain the water from Ashmedai's cistern, plugged the channel with the wool fleece, and dug a higher pit to pour wine down into the chamber. Then he smoothed the dirt, climbed a tree, and waited.
Ashmedai returned, found his seal intact, lifted the stone, and smelled wine. He hesitated and quoted Scripture, muttering, "Wine is a mocker; strong drink is raging" (Proverbs 20:1), and "Whoredom and wine and new wine take away the heart" (Hosea 4:11). Thirst won out, so he drank deeply and fell asleep inside the pit. Benaiah dropped from the tree and locked the chain around his neck. Ashmedai woke roaring and tore at the links, until he saw the Ineffable Name engraved on the iron and went quiet.
Weeping on the Road to Jerusalem
On the road to Jerusalem, Ashmedai wept at a wedding because he knew the groom would die in three days, and he laughed at a man ordering shoes built to last seven years because that buyer had only a week left to live. Demons, he told Benaiah, judge things by their true worth rather than their appearance.
Three days after reaching Jerusalem in chains, Ashmedai was led before Solomon. Before the king could speak, the demon measured off four cubits on the floor with his staff and said, "When you die, Solomon, you will possess in this world no more than these four cubits of earth. You have conquered the world and were not satisfied until you conquered me as well." Solomon answered quietly, "I want nothing from you. I wish only to build the Temple, and I need the Shamir."
The Wild Rooster Under Glass
Ashmedai shrugged and told him that the Shamir was not in his charge. The Prince of the Sea held it and entrusted it only to the great wild rooster, known in Aramaic as the nagar tura (נגר טורא), the mountain-splitter, under an oath that the bird would always return it. The rooster carried the tiny worm to barren peaks, split the rock, and dropped seeds of trees and plants into the clefts so desolate mountains could turn green.
Benaiah tracked the wild bird to its nest on a lonely peak and covered the opening with glass. When the rooster returned and could not reach its young, it fetched the Shamir to cut through the barrier, and Benaiah lunged out and snatched the worm. With that tiny creature, Solomon raised the Temple without the sound of iron, and once the work ended, the Shamir vanished from the world.
Four Hundred Miles From the Throne
Solomon kept Ashmedai captive until the Temple was finished, and then curiosity got the better of him. Recalling the verse that speaks of God's strength like that of a wild ox (Numbers 23:22), which tradition linked to angels and demons alike, Solomon asked Ashmedai what made demons superior to human beings. Ashmedai answered, "Take this chain from my neck, and give me your signet ring, and I will show you."
Solomon unfastened the chain and placed the ring in the demon's hand. At once Ashmedai seized the king, swallowed him, stretched one wing to touch heaven and the other to touch the earth, and cast him four hundred miles away. Stripped of his crown, Solomon wandered from door to door begging for bread. Rav and Samuel later disagreed over the single possession he carried on the road, one saying his staff and the other saying his water-jug. Wherever Solomon knocked, he declared, "I, Kohelet, was king over Israel in Jerusalem" (Ecclesiastes 1:12), and the people laughed at him. Of those bitter years he wrote, "What profit hath a man of all his labor?" (Ecclesiastes 1:3; 2:10), and he wandered as an outcast until the Sanhedrin finally recognized him and restored him to his throne.
← All myths





