6 min read

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.

Curated by Arthur · Told by Maggid ·
Table of Contents
  1. The Worm Created at Twilight
  2. Wine in the Mountain Cistern
  3. Weeping on the Road to Jerusalem
  4. The Wild Rooster Under Glass
  5. Four Hundred Miles From the Throne

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.

Why Solomon Had to Trap the King of Demons to Build the Temple 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

From the tradition

Sources

5 sources

The texts behind this telling. Some cards carry a translation of the source; others are our own retelling of it, and each card says which. Every card links out to the original.

Gittin 68a-bHebraic Literature (1901)

Retold in our words. Read the original at the link below.Project Gutenberg eBook #14368, Hebraic Literature · PD-US-pre-1929

When Solomon set out to build the Temple, he faced a strange obstacle hidden in plain sight in the Torah. Scripture says that "the house, when it was in building, was built of stone made ready before it was brought thither; so that there was neither hammer nor axe nor any tool of iron heard in the house, while it was in building" (1 Kings 6:7). Iron could not touch the stones of a house meant for peace.

So Solomon asked the Sages: "How shall I shape these stones without iron?" They remembered an ancient creature, one of the ten things created at twilight on the sixth day of creation, the Shameer, a worm no bigger than a grain of barley, whose touch could split the hardest substance on earth. It was the same creature Moses had used to cut the precious stones of the Ephod, the High Priest's breastplate.

Hunting a Worm Through the Demon Kingdom

Where was the Shameer? The Sages told Solomon: summon a male and female demon and interrogate them. He did. They knew nothing, but they knew who would, Ashmedai, king of the demons.

Ashmedai, they reported, lived in a distant mountain. There he had dug a pit, filled it with water, covered it with a stone, and sealed it with his own seal. Every morning he ascended to heaven and studied in the celestial academy of wisdom. Every afternoon he descended and studied in the earthly academy. Then he checked his seal, broke it, drank, resealed the pit, and vanished.

This story, preserved in Gittin 68a-b, pictures Temple-building as an act that reaches down into creation's undergrowth and up into the academies of angels. A tiny worm held in the beak of a moorhen would, in the end, shape the stones that held the Shechinah.

Even Solomon, the wisest king who ever lived, needed the cooperation of worms and demons to build a house for God.

Full source
Gittin 68aHebraic Literature (1901)

Retold in our words. Read the original at the link below.Project Gutenberg eBook #14368, Hebraic Literature · PD-US-pre-1929

When Solomon needed the king of the demons to help build the Temple without iron, he sent his captain Benaiah son of Jehoiada into the wilderness. Benaiah carried two weapons that no demon could resist: a chain and a ring, and upon each was engraved Shem HaMeforash, the Ineffable Name of God.

Benaiah also carried a fleece of wool, some skins, and wine.

He found the pit where Ashmedai, king of the shedim, came each day to drink. Benaiah dug a lower pit, drained off the water, and plugged the channel with the fleece. Then he dug a higher pit and filled it with wine, letting the wine run down into Ashmedai's cistern. He smoothed the ground so the demon would suspect nothing, climbed a tree, and waited.

Ashmedai arrived. He checked his seal, untouched. He lifted the stone. And found wine. He hesitated. "Wine is a mocker; strong drink is raging" (Proverbs 20:1), he muttered. "Whoredom and wine and new wine take away the heart" (Hosea 4:11).

But he was thirsty. He drank. He drank more. And then the king of the demons lay down in his pit and slept.

Benaiah dropped from the tree and looped the chain around Ashmedai's neck. The demon woke roaring, wrenching at the chain, until he saw the Name engraved in the iron. At that he went quiet. The Name of God holds even the strong (Gittin 68a).

The lesson is not that demons can be outsmarted. It is that a holy Name, spoken rightly, binds even what seems unbindable.

Full source
Gittin 68a-bHebraic Literature (1901)

Retold in our words. Read the original at the link below.Project Gutenberg eBook #14368, Hebraic Literature · PD-US-pre-1929

King Solomon needed the Shamir, a creature no larger than a barley grain but strong enough to split any stone, because the Torah forbade iron tools on the Temple's stones. To find it, he had to capture Ashmedai, king of the demons.

Three days after Ashmedai was brought in chains to Jerusalem, he was led before the king. 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 him quietly. "I want nothing from you. I wish only to build the Temple, and I need the Shamir."

Ashmedai shrugged. "The Shamir is not in my charge. It is entrusted to the Prince of the Sea, who entrusts it only to the great wild cock, and even then only under oath that the bird will return it."

"And what does the wild cock do with it?" Solomon asked.

"He carries it to a barren mountain," the demon replied, "splits the rock with it, and drops seeds of trees and plants into the cleft. That is how desolate places become green and fit for habitation." This, the sages explain, is the same nagger tura, the mountain splitter, named among the creatures of Leviticus 11 and rendered so in the Targum.

Even demons, in Solomon's court, served a sanctuary built without the sound of iron.

Full source
Gittin 68bHebraic Literature (1901)

Retold in our words. Read the original at the link below.Project Gutenberg eBook #14368, Hebraic Literature · PD-US-pre-1929

Once Solomon had chained the demon king Ashmedai, he held him captive until the Temple was completed. When the work was done, the king grew curious. "What is your superiority over us," he asked, "if it is true, as it is written (Numbers 23:22), that God has the strength of a wild ox, which tradition says means ministering angels and demons alike?"

Ashmedai smiled the smile of one who knows he is about to be released. "Take this chain from my neck," he said, "and give me your signet ring, and I will show you." Solomon, to his sorrow, obeyed. No sooner did the demon have the ring than he seized the king, swallowed him, stretched out one wing touching heaven and the other the earth, and vomited Solomon forth four hundred miles away.

Stripped of his throne, Solomon wandered from door to door. Rav and Samuel disagreed about what he carried, one said his staff, the other said his water-jug. Wherever he came he declared (Ecclesiastes 1:12), I, Kohelet, was king over Israel in Jerusalem, and people laughed at him. Of this time he wrote (Ecclesiastes 1:3; 2:10), What profit hath a man of all his labor?

The Talmud (Gittin 68b) tells this story as a parable of pride. Solomon had conquered a demon, built a Temple, and held every secret of creation in his hand. And one moment's curiosity about evil sent him begging. Only when the Sanhedrin recognized him and restored him to his throne did he learn that even the wisest man's kingdom is held by a thread.

Full source
Jewish Fairy Stories, King Solomon and the WormJewish Fairy Stories (Friedlander, 1920)

Retold in our words. Read the original at the link below.Jewish Fairy Stories (Friedlander, 1920), Project Gutenberg #72880 · Public Domain

Solomon wanted to build a Temple without lifting a single iron tool against the stone. He had read the warning himself: if you raise your blade upon the altar, you defile it (Exodus 20:25). Iron was the metal of swords, of war, of death. The house of God would rise without it.

One problem. How do you cut a mountain of stone with no blade?

His wisest counselor leaned in with an answer the Babylonian Talmud preserves in tractate Gittin. There is a creature, he said, no bigger than a grain of barley, born in the twilight of the first Sabbath eve. The Shamir. It splits the hardest rock at a touch, and iron shatters in its presence. But no human knows where it hides. For that, you must command the demons.

Solomon turned the ring on his hand, the one engraved with the Holy Name, and a demon appeared trembling. Even the demon did not know. Only Ashmedai, king of the spirits, kept that secret, asleep each night atop a far mountain beside a sealed well.

So Solomon sent Benaiah, son of Jehoiada, with a golden chain bearing the Divine Name. Benaiah drained Ashmedai's well and refilled it with wine. The demon king drank, staggered, and dropped into sleep, and Benaiah locked the chain around his neck.

On the road home, Ashmedai wept at a wedding because the groom would die in three days. He laughed at a man ordering shoes to last seven years, knowing the man had a week to live. Demons, he said, judge things by their true worth, not their appearance.

The Shamir, he finally admitted, was guarded by a wild bird on a lonely peak. Benaiah trapped the nest under glass. The desperate bird fetched the worm to cut through, and Benaiah snatched it. With that tiny worm, Solomon raised the Temple, and the Shamir vanished from the world.

Full source