Psalm 23 is one of the most familiar passages in the Bible. Its words have brought comfort to generations of God’s people in times of peace, uncertainty, suffering, grief, and death.
But the comfort of Psalm 23 is not ultimately found in peaceful scenery. It is found in the Shepherd.
The psalm moves through dramatically different settings. There are green pastures and still waters, but there are also dark valleys and enemies. There is rest, but there is also danger. There is a path to walk, a table prepared, and finally a home with God.
Through all of those changing circumstances, one thing remains the same: the Shepherd is faithful.
Psalm 23 portrays the life of God’s people as a journey under the faithful care of the LORD. He provides, gives rest, restores, guides, remains present through danger, welcomes his people into fellowship, and finally brings them home to dwell with him forever.
The scenery changes, but the Shepherd remains the same.
What Is the Main Meaning of Psalm 23?
The main message of Psalm 23 is that those who belong to the LORD can depend upon his faithful care through every circumstance of life.
David begins with a personal confession:
“The LORD is my shepherd.”
Everything else in the psalm grows out of that relationship.
Because the LORD is his Shepherd, David can trust him for provision. The Shepherd leads him to places of rest and refreshment. He restores him when he is weary or wandering. He leads him in righteous paths.
Then the landscape changes.
David walks through the valley of the shadow of death. Enemies appear. Yet the Shepherd has not disappeared. In fact, when the psalm becomes darkest, David’s language becomes more personal:
“You are with me.”
The Shepherd remains present in the valley and then welcomes David as a Host who prepares a table, anoints his head with oil, and fills his cup until it overflows.
Finally, David looks beyond the circumstances immediately around him and declares:
“Surely goodness and mercy shall follow me all the days of my life.”
His confidence extends through all his days and ultimately beyond death itself:
“I shall dwell in the house of the LORD forever.”
Psalm 23 therefore begins and ends with the LORD. David tells us about his experiences, but the great subject of the psalm is God himself.
Who Wrote Psalm 23?
Psalm 23 is identified as “A Psalm of David.”
That makes the shepherd imagery especially fitting. Before David became king, he had been a shepherd. He knew what it meant to tend sheep, lead them, protect them, and provide for them.
David also knew what it was to experience dramatically changing circumstances. His life included victories and failures, security and danger, friendship and betrayal. He knew what it meant to have enemies, and he knew what it meant to depend upon God.
Yet Psalm 23 is not mainly a testimony to David’s strength or wisdom.
It is a testimony to the faithfulness of David’s God.
The confidence of the psalm does not come from David’s ability to control the journey. It comes from knowing the Shepherd who leads him through it.
Why Does David Call the LORD His Shepherd?
A shepherd cares for sheep that depend upon him.
That image allows David to describe several dimensions of God’s relationship with his people at once. The Shepherd provides. He leads. He protects. He restores. He remains near his sheep and brings them where they need to go.
Shepherd imagery also appears elsewhere in Scripture as a picture of God’s relationship with his people. Psalm 100 describes God’s people as “the sheep of his pasture,” while the prophets use shepherd imagery to speak about God’s care and rule.
But Psalm 23 makes the relationship strikingly personal.
David does not merely say that the LORD is a shepherd.
He says:
“The LORD is my shepherd.”
Psalm 23 is about more than believing that God is powerful or knowing certain facts about him. David belongs to the Shepherd, and he trusts the Shepherd’s care.
That personal relationship is the foundation for everything that follows.
Psalm 23:1 — The LORD Is My Shepherd; I Shall Not Want
The Structure of Psalm 23: Shepherd, Host, and the Journey Home
Psalm 23 is not simply a collection of comforting statements. There is movement through the psalm.
David takes us on a journey:
Shepherd → pasture → water → paths → valley → table → house of the LORD
The theological movement is just as significant:
belonging → provision → rest → restoration → guidance → suffering → presence → fellowship → abundance → continuing mercy → final dwelling with God
In the first part of the psalm, the dominant picture is God as Shepherd.
He makes the sheep lie down. He leads. He restores. He guides. He remains with the sheep in the valley.
Then the imagery develops. In verse 5, God is pictured as a Host who prepares a table, welcomes his guest, anoints his head, and fills his cup.
These pictures belong together. Whether David is pictured as a sheep following the Shepherd or as a guest welcomed by the Host, God is the one who cares, provides, leads, protects, and welcomes.
And the journey is not uniformly peaceful.
The same psalm contains green pastures and a dark valley.
It contains still waters and enemies.
It contains danger and an overflowing cup.
Psalm 23 therefore does not teach that God’s faithful care means circumstances will always be comfortable. Its confidence is deeper: whatever the landscape looks like, the Shepherd remains faithful.
Psalm 23 Explained Verse by Verse
Each verse adds something important to David’s picture of life with God.
Psalm 23:1 — “The LORD Is My Shepherd; I Shall Not Want”
“The LORD is my shepherd; I shall not want.”
Psalm 23 begins not with what David needs but with who God is.
The LORD is his Shepherd.
The word “my” matters. David belongs to God and trusts himself to God’s personal care.
That relationship gives David confidence to say, “I shall not want.” The sense is not that David will receive everything he desires. Nor is Psalm 23 promising a life without hardship. The valley later in the psalm makes that impossible.
Rather, David is expressing confidence in the provision of his faithful Shepherd. His life is in God’s hands.
The provision of Psalm 23 cannot be separated from the person of the Shepherd.
Read Psalm 23:1 Explained — “The LORD Is My Shepherd; I Shall Not Want”
Psalm 23:2–3a — Green Pastures, Still Waters, and a Restored Soul
“He makes me lie down in green pastures. He leads me beside still waters. He restores my soul.”
Notice who acts.
He makes. He leads. He restores.
The sheep do not create the pasture or provide the water. The Shepherd supplies what they need.
Green pastures picture rest and nourishment. Still waters picture refreshment. “He restores my soul” speaks of renewal and of the Shepherd bringing back and reviving those under his care.
Together these images present rest, refreshment, and restoration as gifts received from the Shepherd.
Read Psalm 23:2–3a Explained — Green Pastures, Still Waters, and “He Restores My Soul”
Psalm 23:3b — “He Leads Me in Paths of Righteousness”
“He leads me in paths of righteousness for his name’s sake.”
The Shepherd does more than provide for his sheep. He leads them.
The picture is one of dependence: the Shepherd knows the way, and the sheep follow.
The “paths of righteousness” are righteous ways—paths consistent with what is right and pleasing to God. The verse is therefore not primarily giving us a technique for discovering every detail of God’s will. It is describing the character of the way in which the Shepherd leads.
And he does this “for his name’s sake.”
David’s confidence rests not in the wisdom or goodness of the sheep but in the character of the Shepherd. God leads faithfully because he is faithful.
Read Psalm 23:3 Explained — Paths of Righteousness and “For His Name’s Sake”
Psalm 23:4 — The Valley of the Shadow of Death
“Even though I walk through the valley of the shadow of death, I will fear no evil, for you are with me.”
Here the setting changes dramatically.
The green pastures and still waters give way to darkness.
The valley gives us language for the dark and dangerous places of human life. That includes death itself, but it can also describe the kinds of seasons in which the way ahead is difficult to see—sickness, bereavement, fear, discouragement, uncertainty, and suffering.
Psalm 23 does not pretend these experiences are unreal.
The valley is real.
But so is the Shepherd.
David’s confidence is not based on the absence of danger. It is grounded in four words:
“You are with me.”
There is also a beautiful change in David’s language. Earlier he speaks about God:
“He makes me…”
“He leads me…”
“He restores my soul…”
But in the valley, David speaks to God:
“You are with me.”
The Shepherd’s rod and staff further emphasize that his presence is active rather than passive. He is present to care for his sheep.
Read Psalm 23:4 Explained — The Valley of the Shadow of Death, Rod and Staff
Psalm 23:5 — The Table, Anointing Oil, and Overflowing Cup
“You prepare a table before me in the presence of my enemies; you anoint my head with oil; my cup overflows.”
The imagery now develops from Shepherd to Host.
God prepares a table and welcomes his guest.
The striking detail is that the table is prepared “in the presence of my enemies.”
David does not say that God waits until every enemy has disappeared before caring for him. The enemies remain, yet the table is already prepared.
There is danger, and there is a feast.
There are enemies, and there is fellowship.
The anointing with oil fits the picture of welcome and personal attention, while the overflowing cup portrays the generosity of the Host.
This is more than bare sufficiency.
Yet the overflowing cup is not a promise that Christians will receive every material desire or live without suffering. The enemies are still present in the same verse.
David is describing the abundant care of God even in the midst of adversity.
Read Psalm 23:5 Explained — The Table, Anointing Oil, and Overflowing Cup
Psalm 23:6 — Goodness, Mercy, and the House of the LORD
“Surely goodness and mercy shall follow me all the days of my life, and I shall dwell in the house of the LORD forever.”
The final verse is filled with confidence.
David begins with “Surely.”
He looks at the Shepherd’s past faithfulness and finds confidence for the future.
God’s goodness does not mean that everything that happens in life is itself good. Psalm 23 has already included valleys and enemies. Rather, those circumstances cannot place David outside the faithful care of his Shepherd.
God’s mercy also reminds us that David’s confidence is not based upon his own perfect performance. He remains dependent upon God’s grace and forgiveness.
And this goodness and mercy continue through “all the days” of his life.
That includes the dark days.
Finally, David looks beyond his present circumstances:
“I shall dwell in the house of the LORD forever.”
The destination of the journey is not simply a better circumstance.
It is life with God.
Read Psalm 23:6 Explained — Goodness, Mercy, and the House of the LORD Forever
What Does Psalm 23 Teach Us About God?
Psalm 23 has much to say about human need, fear, suffering, dependence, and hope. But its central subject is God.
Verse by verse, David shows us what his Shepherd is like.
He is personal. David calls him “my Shepherd.”
He provides. David can say, “I shall not want.”
He gives rest and refreshment. He leads to green pastures and still waters.
He restores. He does not abandon his sheep when they are weary or wandering.
He guides. He leads in paths of righteousness.
He is righteous and faithful. His leading is consistent with his name and character.
He is present. In the darkest valley, David can say, “You are with me.”
He actively cares for his people. His rod and staff comfort.
He welcomes. He prepares a table.
He is generous. The cup overflows.
He is good and merciful. His care continues through all of David’s days.
He brings his people home. The psalm ends with dwelling in the house of the LORD forever.
The comfort of Psalm 23 does not ultimately come from the promise of green pastures.
It comes from the character of the Shepherd.
Does Psalm 23 Promise a Life Without Suffering?
No. Psalm 23 itself prevents us from reading it that way.
The same life contains green pastures and dark valleys.
The person led beside still waters also walks through the valley of the shadow of death.
The person whose cup overflows still has enemies.
Psalm 23 therefore does not promise that trusting God will remove every painful circumstance. David’s confidence is not:
Nothing frightening will happen to me.
His confidence is:
“You are with me.”
That distinction matters.
A dark valley does not necessarily mean the Shepherd has abandoned his sheep. The Shepherd who led before the valley remains present within it.
Verse 5 makes the same point through a different picture. God does not wait for every enemy to disappear before preparing the table.
And verse 6 gathers both valley and enemies into the words:
“all the days of my life.”
The dark days are included.
The Shepherd’s goodness is not proved by the absence of valleys. His faithfulness is displayed in his care through them.
Read Psalm 23:4 — His Presence in the Valley
Why Is Psalm 23 Often Read at Funerals?
Psalm 23 is often associated with funerals because it speaks directly and realistically about death while offering hope beyond it.
David does not avoid the reality of “the valley of the shadow of death.” Death belongs to the darkness through which human beings must walk.
Yet death is not presented as a place where the Shepherd ceases to care for his people.
David says:
“You are with me.”
The psalm then ends with confidence that extends beyond the changing circumstances of this present life:
“I shall dwell in the house of the LORD forever.”
For Christians, Psalm 23 therefore speaks powerfully in times of grief because it does not ask us to pretend death is painless or insignificant. It directs our confidence toward the God whose presence remains with his people and whose final purpose is communion with himself.
Read: Psalm 23:4 — The Valley of the Shadow of Death
Read: Psalm 23:6 — The House of the LORD Forever
How Does Psalm 23 Point to Jesus, the Good Shepherd?
For Christians, the Shepherd of Psalm 23 ultimately directs our attention to Jesus Christ.
In John 10, Jesus says:
“I am the good shepherd.”
He describes the Good Shepherd as one who knows his sheep and whose sheep hear his voice and follow him.
Most importantly, Jesus says:
“The good shepherd lays down his life for the sheep.”
The Shepherd’s care is therefore seen most fully in Christ giving himself for his people.
Jesus does not stand at a distance from suffering and death. He laid down his life on the cross and rose again. He gives eternal life to his sheep and promises that no one can snatch them from his hand.
That gives Christians an even deeper reason for the confidence expressed in Psalm 23.
The Shepherd who provides is the Shepherd who gives himself.
The Shepherd who leads calls his sheep to follow him.
The Shepherd who remains with his people through the valley is the one who entered death and overcame it.
And the Shepherd who cares for his people throughout the journey will bring them home.
Jesus told his disciples that he was preparing a place for them so that they might be where he is.
That is ultimately the hope at the end of Psalm 23: not merely escape from difficulty, but communion with God.
What Does Psalm 23 Teach About the Christian Life?
Psalm 23 gives us a picture of the Christian life as life under the care of the Shepherd.
We belong to the Shepherd
Everything begins with:
“The LORD is my shepherd.”
Christian confidence is relational. God’s people belong to him.
We depend upon the Shepherd
The sheep do not create their own green pastures, still waters, or restoration.
The Shepherd acts.
He makes.
He leads.
He restores.
The Christian life is therefore a life of dependence upon God’s grace rather than self-sufficiency.
We follow the Shepherd
Dependence does not mean passivity.
The Shepherd leads his people in paths of righteousness, and the sheep are called to follow.
Jesus uses exactly that language when he calls people to be his disciples:
“Follow me.”
We trust the Shepherd when circumstances change
Psalm 23 does not tell us that every season will look the same.
Sometimes the landscape is green pasture.
Sometimes it is a dark valley.
Sometimes enemies remain in view.
Our confidence cannot finally rest upon keeping the scenery pleasant. It rests upon knowing that the Shepherd remains faithful when the scenery changes.
Our destination is the Shepherd himself
The psalm does not ultimately end with pasture, water, safety, prosperity, or even relief from enemies.
It ends:
“in the house of the LORD forever.”
The greatest gift of the Shepherd is ultimately God himself.
He brings his people home to dwell with him.
Psalm 23 in One Sentence
Psalm 23 teaches that those who belong to the LORD can trust their faithful Shepherd to provide, restore, guide, accompany, sustain, and finally bring them home to dwell with him forever.
Explore Psalm 23 Verse by Verse
Psalm 23 is short, but every verse contributes something important to its picture of the Shepherd’s faithful care.
Psalm 23:1 — His Provision
“The LORD is my shepherd; I shall not want.”
Explore what it means to call the LORD “my Shepherd,” why David says “I shall not want,” and how God’s provision produces dependence and contentment.
Psalm 23:2–3a — His Peace
“He makes me lie down in green pastures. He leads me beside still waters. He restores my soul.”
Explore the Shepherd’s gifts of rest, refreshment, and restoration.
Psalm 23:3b — Paths of Righteousness
“He leads me in paths of righteousness for his name’s sake.”
Explore God’s guidance, righteous paths, following the Shepherd, and the meaning of “for his name’s sake.”
Psalm 23:3b — Paths of Righteousness
Psalm 23:4 — His Presence
“Even though I walk through the valley of the shadow of death, I will fear no evil, for you are with me.”
Explore the valley of the shadow of death, “fear no evil,” God’s presence, and the comfort of the Shepherd’s rod and staff.
Psalm 23:5 — His Party
“You prepare a table before me in the presence of my enemies; you anoint my head with oil; my cup overflows.”
Explore God as Host, the table in the presence of enemies, anointing with oil, and the overflowing cup.
Psalm 23:6 — His Promise
“Surely goodness and mercy shall follow me all the days of my life, and I shall dwell in the house of the LORD forever.”
Explore David’s confidence in God’s goodness and mercy through all his days and his hope of dwelling with the LORD forever.
Psalm 23 begins with the LORD and ends with the LORD.
Between those two statements, everything around David changes. There is provision and need, rest and movement, light and darkness, peace and opposition, life and death.
But the Shepherd remains faithful.
That is why David can begin with confidence:
“The LORD is my shepherd.”
And end with confidence:
“I shall dwell in the house of the LORD forever.”
