“Surely goodness and mercy shall follow me all the days of my life, and I shall dwell in the house of the LORD forever.”
— Psalm 23:6
We have been walking with David through Psalm 23 and his picture of life with God as life under the care of a shepherd. Now we come to the final verse, and in many ways it is a summary of everything that has come before.
David looks over the past, considers the future, and even looks beyond death itself. And if I had to sum up this final verse in one word, it would be confidence.
Notice how it begins: “Surely.”
Not possibly. Not maybe. Not hopefully.
Surely.
This is a statement of confidence—confidence in life and confidence in death. David knows the Shepherd, and because he knows the Shepherd, he knows what he can expect from him.
The Psalm Begins and Ends with the LORD
Psalm 23 begins with the LORD: “The LORD is my shepherd.” And it ends with the LORD: “I shall dwell in the house of the LORD forever.”
The great subject of the psalm is the LORD himself. David is certainly telling us about his experience, but above all he is telling us about his God. The psalm begins with him and ends with him.
Read here: Psalm 23 — Shepherd theme and overall structure
And between those two references to the LORD, David has described the journey of life with his Shepherd. As we have seen throughout this series, the Shepherd provides. He gives rest and restores the soul. He leads in paths of righteousness. He remains with his sheep through the darkest valley. He prepares a table even in the presence of enemies.
Psalm 23:3 — Paths of Righteousness
Now David gathers all of that up into one final declaration:
“Surely goodness and mercy shall follow me all the days of my life.”
The Shepherd’s past faithfulness gives David confidence for everything still to come.
“Surely”: Confidence in the Shepherd
There is no hesitation in that word “surely.”
David is not saying that goodness and mercy might follow him if circumstances cooperate. He is not saying that God will be faithful if David performs well enough. He is making a bold statement of confidence because he knows the character of his Shepherd.
Knowing the Shepherd does this to you. Or, to put it more directly, when you know God, it changes your outlook on life.
David has already experienced God’s faithful provision, presence, peace, guidance, and protection. Now he says that the God who has cared for him in the past will continue to care for him in the future. God is faithful to his promises.
That is where Christian confidence is grounded—not in our ability to predict what tomorrow will bring, but in the character of the God to whom we belong.
“Goodness and Mercy Shall Follow Me”
What does Psalm 23:6 mean when it says that goodness and mercy will follow us?
Begin with goodness.
Because God is good, because he does not change, and because David belongs to him, David knows that his life remains under the Shepherd’s good purposes. That does not mean everything that happens to him is good in itself.
Joseph understood that distinction.
When Joseph finally stood before the brothers who had betrayed him, he did not pretend their actions were good. What they had done to him was evil. Betrayal was not good. False accusation was not good. Prison was not good.
But Joseph could look back and recognize that God had been at work through it all: “You meant evil against me, but God meant it for good” (Genesis 50:20).
God does not require us to call evil good. There are circumstances in life that are genuinely painful, tragic, and wrong. But those circumstances do not place us outside the Shepherd’s care. God is able to accomplish his good purposes even through what is evil.
So when David looks at his life and says, “Surely goodness…shall follow me,” he is not denying the valley. He has already told us about the valley. He is not denying the enemies. He has already told us about the enemies.
He is saying that neither valley nor enemy can finally separate the sheep from the goodness of the Shepherd. And then there is mercy.
God’s mercy is his kindness and favor toward people who do not deserve it. It includes his forgiveness. David’s confidence is not based on his performance but on the mercy of God.
The psalmist says elsewhere that if the LORD kept a record of sins, no one could stand, but with him there is forgiveness (Psalm 130:3–4). Lamentations tells us that the mercies of the LORD never come to an end; they are new every morning (Lamentations 3:22–23).
Every morning we awaken as people dependent upon mercy.
That is wonderfully liberating. The Shepherd provides for us, and the Shepherd pardons us. His goodness supplies our needs; his mercy meets us in our sin.
Even the Lord’s Prayer teaches us to live with this daily dependence: we ask our Father for daily bread, and we ask him for forgiveness. Provision and pardon. Goodness and mercy.
“All the Days of My Life”
We must not miss the comprehensiveness of David’s words: “all the days of my life.”
All of them.
Bright days and dark days. Feasting days and fasting days. Days when God’s goodness seems obvious and days when we struggle to see what he is doing.
“All the days” means that God’s care is not intermittent. David does not say, “Goodness and mercy followed me during the pleasant parts of my life.” He says they follow him through the whole journey.
This is especially striking because verse 6 comes after verses 4 and 5. There has been a valley of the shadow of death. There have been enemies. Yet after speaking of valleys and enemies, David still says, “Surely goodness and mercy shall follow me all the days of my life.”
That means the dark days are included.
Paul expresses something similar in Romans 8. In a context that includes suffering, he writes that
“for those who love God all things work together for good, for those who are called according to his purpose” (Romans 8:28).
Paul then describes the certainty of God’s saving purpose: those whom God foreknew he predestined to be conformed to the image of his Son; those he predestined he called; those he called he justified; and those he justified he glorified (Romans 8:29–30).
The point is the security of God’s purpose for his people.
If you belong to Christ, you can look back and see that God called you and brought you to saving faith in his Son. Through Christ you have been justified. You have been adopted and accepted. Romans 8 begins with no condemnation for those who are in Christ Jesus and ends with no separation from the love of God in Christ Jesus.
And all of that is said in a chapter that takes suffering seriously.
So goodness does not mean the absence of suffering. It means that suffering cannot overturn the saving purposes of God.
God has your days covered.
“My times are in your hand,” the psalmist says (Psalm 31:15).
Your whole life is in his hands—and these are the hands of the Good Shepherd. Jesus says of his sheep that no one will snatch them out of his hand (John 10:27–30).
There is not a single day of your life that falls outside his care. He provides, forgives, leads, and remains present with his people.
That is why remembering the Shepherd matters so much when we are anxious. We so easily look at what is happening around us and begin to panic. But David looks at his life through the character of God.
The result is confidence.
Not confidence that nothing painful will happen. Psalm 23 itself will not allow us to say that.
It is confidence that whatever happens, the Shepherd will still be there.
Goodness and Mercy Even in the Valley
This is one of the great lessons of Psalm 23.
The same life contains green pastures and dark valleys.
The same person who says, “He leads me beside still waters,” also says, “I walk through the valley of the shadow of death.”
The same person who speaks about an overflowing cup also speaks about enemies.
And after all of it, David says, “Surely goodness and mercy shall follow me all the days of my life.”
The Shepherd’s goodness is not proved by the absence of valleys. It is proved by his faithfulness through them.
His mercy does not disappear when life becomes difficult.
His presence does not disappear when we cannot see the path.
His promises do not disappear when enemies surround us.
“All the days” means all the days.
And that brings us to the final part of David’s confidence. He has confidence not only in life, but also in death.
“I Shall Dwell in the House of the LORD Forever”
David says, “I shall dwell in the house of the LORD forever.”
The Shepherd’s care does not end at death.
David’s confidence stretches beyond his final day in this present life. He expects permanent communion with God: “I shall dwell…forever.”
That word matters.
He is not describing a temporary visit. His destination is home with God.
Throughout Scripture we see God’s purpose to dwell with his people. We see God with humanity in the garden. We see his presence among Israel in the tabernacle and temple. We see God dwelling among us in the person of Jesus Christ. We experience his presence now by the Holy Spirit. And Scripture finally directs our hope toward the new creation, where God dwells with his people and death, mourning, crying, and pain are no more.
David’s words therefore point us toward something larger than simply surviving the difficulties of this life. The Shepherd is bringing his people home.
That gives the Christian confidence in the face of death.
Death is real. Scripture does not sentimentalize it. Hebrews tells us that it is appointed for man to die once, and after that comes judgment (Hebrews 9:27). Yet the person who belongs to Christ can face death with hope because belonging to the Shepherd does not expire at the grave.
This is why the Heidelberg Catechism’s famous opening question is so fitting: What is our only comfort in life and in death? That we belong to Jesus Christ.
That is David’s confidence here. In life, goodness and mercy follow me. In death, I still belong to my Shepherd. Beyond death, I will dwell with him forever.
The Good Shepherd Brings His Sheep Home
Jesus gives us the fullest reason for this confidence.
In John 10, Jesus identifies himself as the Good Shepherd. He knows his sheep. They hear his voice. They follow him. He gives them eternal life, and no one can snatch them from his hand.
Those hands are the hands that were pierced for our sins.
Our confidence rests in a Shepherd who laid down his life for the sheep and overcame death.
Then, in John 14, Jesus comforts his disciples with another promise. In his Father’s house are many rooms, and he goes to prepare a place for them. He will come again and take them to himself, so that where he is, they may be also.
That is the heart of the promise: that where he is, we will be also.
The Christian hope is not merely that death will stop hurting or that we will escape the troubles of this world. Our hope is communion with God. We will be with Christ.
And the Bible’s final vision carries that hope into the new creation. There will be no more curse, no more tears, no more pain, no more sin, and no more death. God will dwell with his people. That is our future.
So we do not merely acknowledge this as a doctrine that will become relevant someday. We look forward to it. We long for it. We pray, “Come, Lord Jesus.”
A Promise to Order Our Lives By
Psalm 23 is beautiful poetry. It is worth memorizing. Its words have comforted God’s people for generations.
But the best thing about Psalm 23 is not simply that it is beautiful.
It is that its promises are true.
That means these words are meant to shape how we live.
When circumstances are good, we recognize the Shepherd’s goodness with gratitude.
When circumstances are painful, we refuse to conclude that the Shepherd has abandoned us.
When we sin, we depend upon his mercy rather than our performance.
When anxiety rises, we remember that our times are in his hands.
When we enter the valley, we remember that he is with us.
And when death comes, we remember that the Good Shepherd who laid down his life and overcame death will bring his people home.
This is the confidence of Psalm 23:6.
“Surely goodness and mercy shall follow me all the days of my life.”
Not some days. All my days!
“And I shall dwell in the house of the LORD forever.”
The Shepherd who has provided for us, restored us, guided us, remained with us in the valley, and sustained us in the presence of enemies will not abandon us at the end of the journey.
Because our Good Shepherd died for us and overcame death, we can say with David:
“Surely goodness and mercy shall follow me all the days of my life, and I shall dwell in the house of the LORD forever.”
Christ is our hope. Christ is our confidence. And the Shepherd who has cared for his people throughout the journey will faithfully bring them home.
Explore the Meaning of Psalm 23
Psalm 23:6 brings David’s journey to its destination: the goodness and mercy of God through all his days and the promise of dwelling with the LORD forever. The confidence of this final verse grows out of everything that came before—the Shepherd’s provision, restoration, guidance, presence in the valley, and generous welcome. Read Psalm 23 explained: meaning, context, and message to follow the psalm from “The LORD is my shepherd” to “the house of the LORD forever.”
Explore the complete Psalm 23 series:

