The Shepherd Boy the Anointing Oil Chose Before Samuel Did
Ancient sources from Psalm 151, Midrash Tehillim, and the Legends of the Jews reveal how David was marked for the throne not by a prophet's decision but by oil that poured itself, pearls that fell from heaven, and a horn that refused to empty.
Table of Contents
Samuel arrived at Jesse's house with a full horn of anointing oil and a task from God: find the next king of Israel among Jesse's sons. He lined them up, these broad-shouldered men, and tried to pour. Nothing happened. The oil sat in the horn as if it had decided something for itself.
Son after son. The horn stayed shut.
Then someone remembered there was still a boy out in the field with the sheep. The youngest. The one nobody had thought to call.
What happened when David walked in is one of the most vivid details preserved in rabbinic tradition. The oil did not merely flow. According to the Legends of the Jews (2,672 texts) compiled by Louis Ginzberg (1909–1938), it poured of its own accord, before anyone had even decided to anoint him. The drops that fell on his garments transformed into diamonds and pearls. And the horn, after anointing him, was as full as it had been before he entered the room. A sign so unmistakable it needed no interpretation.
But signs that clear always produce questions. Who is this boy? Where does he come from? Is he truly fit to be king? The ancient texts preserve those questions alongside the miracle — and the answers are more complex than they first appear.
What Psalm 151 Reveals About the Boy Watching Sheep
Before David was a king or a warrior or a poet, he was alone in the wilderness with his father's flock. The apocryphal Psalm 151, found in expanded versions of the Psalms and composed sometime in the Second Temple period, gives David's own voice to that season of his life. "Young I was in the midst of my brothers," it begins, "and a lad in my father's house. A shepherd of my father's flock, driving his herd in the wilderness."
This is not a glamorous beginning. The Hebrew word used is na'ar — lad, boy, someone not yet counted among the men. Out in the midbar, the wilderness, with no audience, no recognition, no one to report to. And yet the psalm tells us David was playing music out there. "My hands performed upon a lute, my fingers worked a lyre." He was not merely tending sheep. He was composing. Pouring himself into song under the stars with no expectation that anyone would ever hear.
The Talmud later recorded a tradition that David's harp would play by itself at midnight, waking him for study and prayer (Berakhot 3b). This is the spiritual portrait the tradition preserved: a man whose inner life was so alive that it kept its own rhythm even while he slept, a musician whose instrument anticipated his devotion.
Psalm 151 describes the moment of transformation with spare economy: "He sent His messenger, and took me from after my father's flock. And He anointed me with anointing oil, and appointed me a prince of my people." One moment tending sheep. The next moment a nagid, a prince. No transition. Just the sudden weight of destiny, settling without warning.
Why the Oil Refused to Pour for the Others
The rabbis pressed on this detail. Why did Samuel need to try seven sons before the oil moved? He was a prophet. Could he not simply perceive who God had chosen?
The account in Legends of the Jews 4:11 suggests that God allowed Samuel to experience his own misjudgment as a kind of instruction. When Eliab, Jesse's eldest, tall and impressive, stood before Samuel, Samuel thought: surely this is the one. But the oil did not stir. God's rebuke was immediate: "For not as man sees does God see; man sees only what is visible, but God sees into the heart" (1 Samuel 16:7). The oil's stubbornness was not a mechanical mystery. It was a demonstration. Samuel had to fail seven times so that when David walked in and the oil moved on its own, there would be no room for doubt about whose choice this was.
The diamonds and pearls that fell from the oil onto David's clothing were not decoration. They were confirmation. The heaven-sent signs left on his garments were visible to everyone present. No one in the room could claim not to have seen.
Does David Sit or Stand Before God?
The Midrash Aggadah (4,331 texts) preserves a remarkable debate about David's royalty from the Midrash Tehillim, the great midrashic commentary on Psalms compiled between the 9th and 13th centuries CE. It turns on a verse in 2 Samuel (7:18): "And King David came and sat before the Lord."
Rabbi Chiya taught that only kings of the Davidic dynasty possessed the singular privilege of sitting in the Temple courtyard. Every other worshipper stood. David alone could sit. But Rav Huna, citing Rabbi Yishmael, raised a counter-argument: in heaven, the angels themselves do not sit. Daniel (7:10) describes them standing. Isaiah (6:2) says the seraphim stood above the throne. Ezekiel (1:7) describes the living creatures with straight legs, unable to bend. If the divine court itself stands, what kind of privilege allows a mortal king to sit?
The debate runs deep. The Midrash Tehillim eventually answers it not by resolving the question but by expanding it. David's privilege of sitting is linked to the broader parallel the rabbis drew between David and Moses. Moses gave Israel the five books of the Torah; David gave them the five-book Psalter. Moses blessed the people with "Happy are you"; David began the Psalms with "Happy is the man." They were, in the tradition's reckoning, the two supreme figures of Jewish history — Moses who received the word from above, David who sang it back from below. A man who could do that had earned his seat.
David Keeps the Sabbath Even at War
The portrait of David in Jewish tradition is never one-dimensional. He is not only the anointed king or the inspired poet. He is also a man who understood the legal architecture of holiness — and upheld it even when it cost him military advantage.
The Sifrei Devarim, the tannaitic legal commentary on Deuteronomy compiled c. 200 CE, records a tradition about the rules governing military sieges. Gentile cities were not to be placed under siege in the three days before the Sabbath, so that the siege would not extend into the day of rest. The text cites the example of David in 1 Samuel 30:1: "And David remained in Tziklag for two days" — meaning he observed the required waiting period before launching his campaign. Even the king of Israel, even in wartime, structured his military calendar around the Sabbath.
What the Sifrei Devarim 203:7 preserves is not only a legal ruling but a portrait of how David used his power. He could have disregarded the ordinance. No general was going to stop him. But he did not disregard it. The tradition remembered this, recorded it, and used it as a proof-text for the law. The king who had received a miraculous anointing was also the king who counted days before a battle to make sure he was not fighting when he should be resting.
What David Told Goliath on the Valley Floor
Psalm 151 ends with the confrontation that made David's name. "He took me out towards the Philistine, who cursed me through his idols. And I tore off his sword, and cut off his head, and removed reproach from the children of Israel."
The Hebrew word used is herpah — reproach, shame, the public degradation of a people who had no one capable of answering Goliath's challenge. David did not go to the valley floor to become famous. He went to remove a shame that had been sitting on Israel for forty days. The oil had marked him. The diamonds and pearls had confirmed it. The Sabbath had taught him what authority was for. Now the valley was the place where all of that had to be made real.
The rabbis noticed that David told Goliath something remarkable before the fight: "I come to you in the name of the Lord of hosts" (1 Samuel 17:45). Not in the name of Israel. Not in the name of Saul. In the name that the angel Iaoel carried, the name that the seraphim declared three times, the name for which no adequate translation exists. David walked into a battle against a giant armed with a spear as long as a weaver's beam and announced that he brought a Name instead of a weapon.
He had learned that out in the wilderness, alone with the lute. He had practiced it in the Sabbath observance that structured even his wars. And when the stone left the sling and the giant fell face-forward on the ground, it was not only a military victory. It was a demonstration of the same truth the oil had demonstrated in Jesse's house: that God does not see as man sees, and that the one standing in the field while his brothers wait inside may be carrying something the horn already knows.