Psalm 23 is a song of trust written by David, a former shepherd, describing God as a shepherd who provides, guides, protects and stays with his people through life and death. Its message is simple: with the LORD as your shepherd, you have everything you truly need, even in the darkest valley. It is the best-known psalm in the Bible. Below is the full King James text, followed by a line-by-line explanation.
The Full Text of Psalm 23 (KJV)
1 The LORD is my shepherd; I shall not want.
2 He maketh me to lie down in green pastures: he leadeth me beside the still waters.
3 He restoreth my soul: he leadeth me in the paths of righteousness for his name's sake.
4 Yea, though I walk through the valley of the shadow of death, I will fear no evil: for thou art with me; thy rod and thy staff they comfort me.
5 Thou preparest a table before me in the presence of mine enemies: thou anointest my head with oil; my cup runneth over.
6 Surely goodness and mercy shall follow me all the days of my life: and I will dwell in the house of the LORD for ever.
— Psalm 23:1-6 (KJV)
David, the Shepherd Who Wrote It
In the King James Bible, Psalm 23 carries the heading "A Psalm of David." David knew the work of a shepherd from the inside. When the prophet Samuel came to anoint a new king, David was the youngest son, left out in the fields because "he keepeth the sheep" (1 Samuel 16:11). Later, when he volunteered to face Goliath, he described what that work had involved:
And David said unto Saul, Thy servant kept his father's sheep, and there came a lion, and a bear, and took a lamb out of the flock: And I went out after him, and smote him, and delivered it out of his mouth...
— 1 Samuel 17:34-35 (KJV)
A shepherd in ancient Israel lived with his flock day and night. He found grass in dry hills, led the sheep to water, carried the weak lambs, and put his own body between the flock and wild animals. Psalm 78:70-71 says God took David "from the sheepfolds" to shepherd his people Israel. So when David wrote "The LORD is my shepherd," he was taking the job he knew best and saying: this is what God does for me.
Scholars do not know exactly when in his life David wrote it. Some imagine a young man in the fields; others think of an older king looking back on years of danger, including his flight from Saul and later from his son Absalom.
Line-by-Line Meaning
"The LORD is my shepherd; I shall not want."
"LORD" in capital letters stands for God's personal name in Hebrew. David does not say "a shepherd" but "my shepherd," which is personal and close. "I shall not want" means "I will not lack anything I need." It is not a promise of everything we wish for, but of everything the Shepherd knows we need.
"He maketh me to lie down in green pastures"
Sheep will not lie down when they are hungry, afraid, or bothered by pests. A sheep that rests is a sheep whose needs have been met. In the dry land of Judea, green pastures had to be found, so this line pictures a shepherd who has gone ahead and prepared a place of rest.
"He leadeth me beside the still waters"
Sheep are nervous around fast-moving water. A good shepherd leads them to calm pools where they can drink safely. The Hebrew phrase can be translated "waters of rest." Notice that the shepherd leads; he does not drive the flock from behind. In the East, sheep followed the shepherd's voice, an image Jesus used when he said the shepherd "calleth his own sheep by name, and leadeth them out" (John 10:3).
"He restoreth my soul"
To restore means to bring back or revive. A sheep can wander off, become exhausted, or fall over and be unable to get up. The shepherd brings it back and sets it on its feet. Spiritually, this is God reviving a tired heart, forgiving the one who strayed and giving new life.
"He leadeth me in the paths of righteousness for his name's sake"
"Paths of righteousness" can also mean "right paths," the tracks that lead somewhere good rather than off a cliff. God guides his people in the right way "for his name's sake," because his own reputation as a faithful shepherd is at stake. Our security rests on his character, not on our performance.
"The valley of the shadow of death"
This is the most famous line of the psalm. The Hebrew word behind "shadow of death" can mean deep darkness, so the verse covers every dark valley: grief, illness, fear, depression and, finally, death itself. In Judea there were real narrow, steep ravines where shepherds had to lead their flocks, where light was dim and danger hid.
Notice two things. First, David says "walk through," not "stay in." The valley is a passage, not a destination. Second, the language changes. Until now David spoke about God ("he leadeth me"). In the dark valley he speaks to God: "for thou art with me." In the darkest place, God is closest.
"Thy rod and thy staff they comfort me"
A shepherd carried two tools. The rod was a short, heavy club used to drive off wild animals. The staff was a long stick, often with a hook, used to guide sheep and pull them out of trouble. One protects, the other guides. Both bring comfort, because they prove the shepherd is there and ready.
"Thou preparest a table before me in the presence of mine enemies"
Here the picture shifts from a shepherd to a host. In the ancient Near East, a guest who ate at someone's table was under that host's protection. God sets a banquet for David while his enemies can only watch. The enemies are still there, but they cannot touch him.
"Thou anointest my head with oil; my cup runneth over"
A generous host poured fragrant oil on an honored guest's head. Jesus once mentioned this custom when a host had failed to do it for him (Luke 7:46). For David the image had a deeper echo, since Samuel had anointed him with oil as Israel's future king (1 Samuel 16:13). Shepherds also put oil on sheep's heads to soothe wounds and keep away insects. The overflowing cup means more than enough, a life full of God's generosity.
"Surely goodness and mercy shall follow me"
The Hebrew verb behind "follow" often means to pursue or chase. Enemies once pursued David; now God's goodness and mercy chase after him every day of his life. "Mercy" translates a rich Hebrew word for God's loyal, covenant love.
"I will dwell in the house of the LORD for ever"
The psalm ends at home. The sheep that began in the fields ends as a guest in the Shepherd's house. For David this meant a lifetime near God's presence. Christians also read it as a hope that reaches beyond death, into eternal life with God.
Jesus, the Good Shepherd
The Old Testament often calls God the shepherd of Israel (Isaiah 40:11, Ezekiel 34:11-12). In the Gospel of John, Jesus applies this title to himself:
I am the good shepherd: the good shepherd giveth his life for the sheep.
— John 10:11 (KJV)
David's shepherd risked his life for the flock. Jesus went further and gave his life. The New Testament also calls him "that great shepherd of the sheep" (Hebrews 13:20) and "the chief Shepherd" (1 Peter 5:4). The final picture of the Shepherd comes in Revelation:
For the Lamb which is in the midst of the throne shall feed them, and shall lead them unto living fountains of waters: and God shall wipe away all tears from their eyes.
— Revelation 7:17 (KJV)
The still waters of Psalm 23 become "living fountains of waters," and the dark valley ends in a place with no more tears. For Christians, this is why Psalm 23 is read with such hope.
Why Psalm 23 Is Read at Funerals
Psalm 23 is one of the most common readings at Christian funerals and memorial services, and it is also read in many Jewish services of mourning. It fits these moments because it does not pretend death is unreal. It names "the valley of the shadow of death" openly. Yet it promises that God walks through that valley with us and that the journey ends in "the house of the LORD for ever."
Families often choose it because it is short, familiar, and easy to say together, even for people who rarely read the Bible. If you are planning a service, our article on what the Bible says about cremation answers another common question families ask.
How to Pray Psalm 23
- Read it slowly, one line a day. Spend a week on the psalm, taking one verse each day and asking what it shows about God.
- Make it personal. David wrote it in the first person. Pray it the same way: "Lord, you are my shepherd. Restore my soul today."
- Use it in the dark valley. If you are facing illness, grief or fear, pray verse 4 aloud. Our page of Bible verses about strength has more for hard seasons.
- Pair it with Psalm 91. Psalm 91 shows God as a fortress and refuge, while Psalm 23 shows him as a shepherd. Together they make a full picture of his care.
Elijah also knew the Shepherd's care in the wilderness, when God fed him and restored his soul, and you can watch his story in Elijah – The Movie.
Frequently Asked Questions
What is the main message of Psalm 23?
The main message is that God cares for his people as a good shepherd cares for his sheep. He provides what they need, gives them rest, guides them, protects them in danger and stays with them through death.
What does "I shall not want" mean in Psalm 23?
It means "I will not lack anything I truly need." In older English, "want" meant "lack." It is a statement of contentment and trust that the Shepherd will provide, not a promise that we will get everything we desire.
What is the valley of the shadow of death?
It is any time of deep darkness and danger, including death itself. The Hebrew can be translated "the darkest valley." David's point is that even there he will fear no evil, because God is with him.
What is the difference between the rod and the staff?
The rod was a short club a shepherd used to defend the sheep against predators. The staff was a long, often hooked stick used to guide sheep and rescue them from trouble. Together they stand for God's protection and his guidance.
Why is Psalm 23 read at funerals?
Because it speaks honestly about death while offering deep comfort. It promises God's presence in "the valley of the shadow of death" and ends with the hope of dwelling "in the house of the LORD for ever." Its familiar words are easy for grieving families to say together.
How does Psalm 23 connect to Jesus?
Jesus called himself "the good shepherd" who "giveth his life for the sheep" (John 10:11). Christians see in him the fulfillment of David's Shepherd: the one who leads, restores, protects and brings his people safely home.
Watch the Bible come alive
New full-length Bible movies every week on our YouTube channel.
▶ Subscribe to Epic Bible Movies


