What does “The Lord is my shepherd” mean in Psalm 23?
Most people can recite Psalm 23 and few can say what a shepherd did all day. Once you know the work, the psalm reads very differently.
The short answer
“The Lord is my shepherd” means the speaker is a sheep, cared for, led and kept alive by God. Israel used shepherd language for kings and for God, and Ezekiel 34 condemns bad shepherds while promising that God himself will tend the flock. Jesus later applied the image to himself, and the apostles and Revelation carried it forward.
Before dawn in the hill country west of Jerusalem, a shepherd did not drive his flock from behind. He walked ahead, and the sheep followed his voice. Jesus describes this scene in John 10, and it is the picture underneath the most famous lines in the Psalms. The psalm is not about a comfortable pasture. It is about a sheep that trusts the person walking in front.
What does “the Lord is my shepherd” mean?
The verse begins with a word that most readers pass over. In Hebrew the first line is Adonai ro‘i lo echsar, and the word for shepherd is ro‘i.
Notice the grammar. The psalm does not begin with a theological statement about God. It begins with a sheep saying what it has. “The Lord is my shepherd” is a confession made by someone who is being looked after. Everything after it, including the verb “I shall not want,” is what follows from being cared for by someone you trust.
A Psalm of David. The LORD is my shepherd; I shall not want.
Psalm 23:1
Psalm 23 is headed “of David” in the Hebrew Bible. Scholars still argue about whether David wrote it, and the text does not require an answer. What the heading does tell us is that the psalm was heard, from the start, as the prayer of a man who had once tended sheep. In 1 Samuel 16:11 David is out with the flock when Samuel comes looking for Israel’s next king.
Why would a king be called a shepherd?
In the ancient Near East, shepherd was a common title for kings. The prologue to the Code of Hammurabi, the Babylonian law code from the eighteenth century BC, describes the king as a shepherd appointed to care for his people.1 Israel used the same language. When the tribes come to David at Hebron, they say, “You will shepherd My people Israel” (2 Samuel 5:2).
So “shepherd” in the Old Testament carries two meanings at once. It describes gentle, daily care for the vulnerable, and it describes the authority of someone responsible for a whole nation. The prophets used both meanings to judge leaders who failed. Ezekiel 34 is the sharpest example. God accuses Israel’s shepherds of feeding themselves while the flock goes hungry, of breaking the weak and leaving the scattered sheep to be eaten by wild animals. Then God says he will do the job himself: “I Myself will shepherd My sheep” (Ezekiel 34:15).
This background changes how Psalm 23 sounds. The sheep in the psalm is not only a poor animal grateful for a meal. It is a member of God’s people, and the shepherd who leads it is the one who will not do what the bad shepherds did in Ezekiel.
What is the valley of the shadow of death?
The most quoted verse in the psalm is the fourth, which speaks of walking through a dark valley. The Hebrew word is tsalmavet, and it has been translated two ways. Older English Bibles render it “the shadow of death.” Many modern translations prefer “deep darkness” or simply “darkness.” The word is built from tsel, shadow, and mavet, death, but its meaning is not limited to dying. It describes a place of deep danger, the kind of ravine where a flock could be attacked or lost in the dark.2
Both readings are fair, and the psalm can hold both. The traditional reading, that the valley is death, has been a comfort to the dying and their families for centuries, and it is a legitimate use of the text. The other reading, that the valley is any season of danger or dread, fits the rest of the poem better. The sheep is not finished walking. It is still among the things that frighten it, and the psalm’s concern is the present journey.
The verse also turns on one small shift. Verses 1 to 3 speak about God in the third person: “He leads me,” “He restores my soul.” In verse 4 the sheep begins talking to God directly: “You are with me.” The psalm moves from describing a shepherd to speaking to one. Hebrew poetry does this often, and it is one of the reasons the psalm feels so personal. The sheep stops reporting on God and starts depending on him in the middle of the valley.
Even though I walk through the valley of the shadow of death, I will fear no evil, for You are with me; Your rod and Your staff, they comfort me.
Psalm 23:4
What does the psalm add to the shepherd image?
The rest of the psalm keeps the imagery concrete. The rod and staff in verse 4 are the tools of a working shepherd. The rod, shevet, is the club for beating off predators, and the same word elsewhere means a ruler’s scepter (Genesis 49:10). The staff is for guiding and pulling sheep out of trouble. The table in verse 5 is an enemy-facing image, a meal set out in the presence of hostility, and the oil on the head is the kind of care a host gives an honored guest.
These details do not turn the psalm into an allegory with a code to crack. They show that the poet knew the work of a flock and of a household, and that he chose images a farmer would recognize.
How did Jesus use the image?
Jesus takes the picture and applies it to himself. In John 10 he says he is the door of the sheepfold and then the good shepherd, and he explains the difference between a shepherd and a hired hand. The good shepherd knows his sheep by name and walks ahead of them, and the sheep follow because they know his voice (John 10:3-4). He then says the line that separates him from the hired man:
I am the good shepherd. The good shepherd lays down His life for the sheep.
John 10:11
The Ezekiel background is still in play here. The good shepherd does what the bad shepherds refused to do. Jesus is claiming the job God promised to do himself in Ezekiel 34, and he is adding the cost: the shepherd does not run when the wolf comes.
Jesus also uses the image for those who are lost. In Luke 15 a shepherd leaves ninety-nine sheep to search for the one that wandered off, and when he finds it, he carries it home on his shoulders. The parable answers Ezekiel’s complaint about the scattered flock. The shepherd does the searching himself.
How did the apostles and Revelation use it?
The apostles keep the image but change the emphasis. Peter writes that his readers “were like sheep going astray, but now you have returned to the Shepherd and Overseer of your souls” (1 Peter 2:25). Hebrews calls Jesus “the great Shepherd of the sheep,” brought back from death (Hebrews 13:20). Peter later speaks of the “Chief Shepherd” who will give a crown to faithful elders (1 Peter 5:4). The shepherd who walks ahead into danger is now the one who has already come through death and returned.
The closest echo of Psalm 23 comes at the end of Revelation. A vision of a great crowd from every nation stands before the throne, and the Lamb at the center of the throne is said to be their shepherd, leading them to springs of living water, and God wipes away every tear (Revelation 7:17). The sheep who once walked through the valley now stand in the open country. The psalm’s hope and John’s vision are the same hope, seen at two different points on the road.
The psalm never promises the sheep will avoid the valley. It promises the shepherd is already walking in front.
Does the psalm promise a safe life or a safe death?
Christians read Psalm 23 in different ways, and the differences are real. Many traditions hear the psalm most often at funerals, and read verse 4 as God’s presence with the believer in death. Others read the psalm as a poem about ordinary life, about daily provision and the trust that carries a person through hard seasons. The last verse, which speaks of dwelling in the house of the Lord “forever” (or in some older translations “for length of days”), can be read as a promise about eternity or as a promise about a long, good life lived under God’s care. The Hebrew allows both.
The text does not force a choice. What it does rule out is the idea that the sheep will be spared all danger. The psalm assumes the valley is real, the enemies are present and the table is set in front of them. The comfort is not that the valley is imaginary. It is that the shepherd has gone into it first.
That is the thread from David through Ezekiel and John to Revelation. The sheep that says “the Lord is my shepherd” is saying that someone is walking ahead, has already been where the danger is, and will lead it out.
Notes and sources
- Code of Hammurabi, prologue (Babylon, eighteenth century BC), where the king describes himself as a shepherd chosen to care for his people. ↩
- Francis Brown, S. R. Driver and Charles Briggs, A Hebrew and English Lexicon of the Old Testament (1906), entries for tsalmavet and ra‘ah. ↩
Scripture quotations are from the Berean Standard Bible.