David calls the LORD his Shepherd in Psalm 23, yet the path he describes still takes him through a dark valley and into the presence of enemies. How can he speak so confidently about God’s care when those dangers remain? I think we can understand his confidence by paying attention to what the Shepherd does for him before, during, and after that walk through the valley.
Psalm 23 Is One Shepherded Journey
David, who became Israel’s king, had cared for his father’s sheep before he ever ruled a nation. When he offered to fight the Philistine warrior Goliath, King Saul questioned whether someone so young could face an experienced fighter. David answered by telling Saul about the lion and the bear he had killed while protecting the flock. He had gone after a lamb taken by a predator, and he credited the LORD with delivering him from those encounters (1 Samuel 17:34–37).
So when David describes the LORD as a shepherd, he is using work he understood to explain his own dependence on God. A flock needs someone to lead it where there is food and water, and someone to protect it when danger comes. David had done that work for his father’s sheep. In this psalm, he places himself among those who need to be cared for:
“The LORD is my shepherd; I shall not want. He makes me to lie down in green pastures; He leads me beside the still waters. He restores my soul; He leads me in the paths of righteousness For His name’s sake. Yea, 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. You prepare a table before me in the presence of my enemies; You anoint my head with oil; My cup runs over. Surely goodness and mercy shall follow me All the days of my life; And I will dwell in the house of the LORD Forever.”
Psalm 78:70–72 carries that connection into David’s responsibility as king. God took him from tending sheep and gave him the work of shepherding Israel, which meant governing and caring for His people. Yet responsibility for other people did not make David able to supply all his own needs. The man who led a nation still needed someone to lead him, and his authority never put him beyond the LORD’s correction.
We often hear Psalm 23 read when someone is grieving or approaching death, and the words about the valley belong in those moments. But David begins with food, water, and rest, and he also speaks about being led in righteousness. Those are needs throughout life. Reading the whole psalm helps us see that the confidence he expresses in danger grows out of his dependence on the LORD for everything else.
There is also a movement in the way David describes that care. First we see a shepherd tending his sheep. Later we see a table prepared for a guest, and the psalm ends with David’s expectation of remaining in the LORD’s house. The surroundings change, but the One who cares for him remains the same.
The LORD Provides, Restores, and Leads
The word LORD, printed in capital letters, represents God’s covenant name in the Old Testament. This is the God who sent Moses to lead Israel out of slavery in Egypt. When He spoke to Moses, He identified Himself as the God of Abraham, Isaac, and Jacob, the ancestors of the people He was promising to deliver (Exodus 3:13–17). David’s trust rested in the God who had made Himself known to Israel and had committed Himself to His promises.
Then David makes that relationship personal by saying “my shepherd.” The LORD who had cared for a nation also knew David’s needs. I find that to be a comforting place to begin, because God’s greatness can be difficult to connect with an ordinary person’s troubles. David does not treat those troubles as too small for God to notice. He trusts the LORD to care for him individually.
That explains the next words, “I shall not want.” Want here means to lack something. David is saying that he can depend on his Shepherd to provide for him. If we turn that into a promise that he will never experience need or difficulty, however, we will have trouble explaining the valley and the enemies in this very psalm.
David’s life also helps us understand what this dependence looked like. Before he became king, Saul sought to kill him, and David lived in wilderness places while avoiding Saul’s pursuit. In 1 Samuel 21:1–6, he had to ask Ahimelech the priest for bread. Later, 1 Samuel 23:14 says that Saul was seeking him every day, yet God did not deliver David into his hand. The LORD’s care was real while David was still facing danger and needing help.
I do not read “I shall not want” as a guarantee that believers will always have comfortable circumstances or receive everything they desire. David depended on the Shepherd who knew what he needed, even when the way that need was met involved waiting or receiving help from someone else. That gives us reason to bring our needs to God without trying to dictate how He must answer. The study on the providence and provision of God develops that dependence further.
The green pastures and still waters give us a simple picture of provision. The sheep can feed, drink, and lie down because their shepherd has brought them to a place where those needs can be met. Before David says anything about the valley, he describes the care that sustains life. I think that helps us remember that dependence on God includes the ordinary needs we sometimes dismiss as unspiritual. He made us with bodies that need food and rest.
David then says that the LORD restores his soul. The care reaches the person who has become worn down and needs to be renewed. Someone may have enough food in the house and still be struggling under grief or fear. Receiving help with those outward needs does not always remove the burden the person is carrying. The LORD’s restoring care reaches that inward need as well.
David knew how to ask for that inward help. In Psalm 51, he acknowledges his own sin and asks God to cleanse him and restore the joy of His salvation. He does not hide his guilt behind religious language or pretend he can make himself right. In Psalm 34, he also describes the LORD’s nearness to people who are brokenhearted:
“The LORD is near to those who have a broken heart, And saves such as have a contrite spirit.”
A contrite spirit is one humbled before God. When sin has brought us to that place, restoration involves admitting the sin and turning from it. But grief itself does not prove that someone has done something wrong. The next verse in Psalm 34 says that the righteous have many afflictions. I would not use the call to trust God to reprimand a grieving person for failing to appear cheerful, or to assume that suffering reveals some hidden failure of faith.
The restored life also has a direction. David says the LORD leads him in paths of righteousness, which means the care of this Shepherd includes teaching him to walk in what is right. I cannot reasonably ask God to restore me and then insist on returning to conduct He has forbidden. An opportunity that requires disobedience does not become His leading just because I want it to succeed.
David adds that the LORD does this “For His name’s sake.” His name is connected with who He has revealed Himself to be. He leads faithfully because He is faithful, and His guidance will agree with His character. That gives me confidence when obedience is costly. A refusal to be dishonest may close an opportunity I wanted, but the cost does not mean that God has guided me badly.
The Shepherd Is Present in the Valley
After the pastures and the righteous paths, David describes walking through “the valley of the shadow of death.” He has not said that the LORD stopped being his Shepherd or that the valley proves he wandered away. The danger appears within his account of a life under God’s care. We should be careful about deciding that someone must have missed God’s direction simply because the way has become difficult.
The Hebrew word commonly written tsalmaveth describes death-shadow or deep darkness. The Brown–Driver–Briggs lexicon entry includes uses connected with distress and extreme danger, and it places Psalm 23:4 among those uses. That helps explain why the verse brings comfort both to someone facing death and to someone enduring severe trouble earlier in life. Its assurance is not limited to a person’s final hours.
David gives his reason for courage in the same sentence: “For You are with me.” He has not persuaded himself that evil is harmless. He is relying on the Shepherd’s presence while the threat remains. That distinction helps me understand how faith and a frightening situation can exist together. Trust does not require us to describe danger as though it were nothing.
David also knew how to bring fear to God. In Psalm 56:1–4, he describes enemies fighting against him and then says that when he is afraid, he will trust the LORD. He is speaking to God about the very fear he needs help with. I think we should allow a frightened believer to do the same, instead of treating an honest admission of fear as a refusal to believe.
Pay attention to whom David is speaking as Psalm 23 continues. He began by telling us what the Shepherd does: He makes him lie down, He leads him, and He restores him. In the valley, David turns directly to the LORD and says “You are with me.” What he has been explaining about God becomes something he says to God in prayer.
That prayer includes the Shepherd’s equipment:
“Your rod and Your staff, they comfort me.”
The rod and the staff belong to the shepherd who is there with the flock. A rod could be used as a club to defend it, and the staff was the shepherd’s walking stick. Together they remind us that he is present and equipped to tend the sheep as he leads them. David takes comfort in the presence of a Shepherd who is able to act. The sheep are not being left to protect themselves or work out the way through danger on their own.
Because the Shepherd leads as well as protects, His care also calls for a response to His authority. I should not ask Him to guard my life while resenting every warning that turns me away from sin. Hebrews 12:5–11 explains this through the relationship between a father and his children. God corrects His children for their good so that they may share in His holiness, even though the correction can be painful while they are receiving it.
That passage helps us understand why loving care can include a correction we would rather avoid. It does not give us grounds to label every hardship as punishment for a particular sin. The purpose is to learn to receive God’s direction because we trust His goodness. The study on the fear of the Lord explains that relationship between reverence and trust more fully.
There will still be times when we cannot see how a difficulty will end. David’s reason for confidence does not require him to know the whole route through the valley. He knows who is with him there. The studies on God being our light and not being forsaken examine that same assurance: our inability to see what comes next does not mean that the LORD has lost sight of us.
The Table, the Pursuing Mercy, and the Journey Home
When David reaches verse 5, the picture changes. Now he is a guest, and the LORD is preparing a table for him. The meal is set out in the presence of his enemies. They have not disappeared before he can receive God’s provision, and their hostility does not prevent the LORD from welcoming him.
The oil and the overflowing cup continue that welcome. Anointing a guest’s head with oil could express honor and hospitality. We can see that association in Luke 7:36–46, when Jesus eats at the home of Simon, a member of the Jewish religious group called the Pharisees. Simon had invited Him, but Jesus points out that His host had not anointed His head with oil. David describes receiving the welcome that Simon had withheld, and the cup that runs over expresses the generosity of his Host.
I do not think the overflowing cup should be turned into a promise that every believer will become wealthy. The point within the meal is that the LORD provides generously for the person He welcomes. David is not struggling to convince an unwilling Host to make room for him. The LORD has prepared the table Himself.
David’s years under Saul’s pursuit help us understand why provision in the presence of enemies would mean so much. Saul’s hostility continued, yet the LORD preserved David. Psalm 27:5 uses another picture of that protection when David describes being sheltered by God in a time of trouble. The trouble and the shelter appear together. Unresolved opposition does not by itself tell us that God has abandoned His servant.
Then David looks beyond the meal to all the days that remain: “Surely goodness and mercy shall follow me All the days of my life.” The word translated follow has the force of pursuing, as the NET Bible’s note on this verse explains. After mentioning enemies, David describes God’s goodness and faithful kindness as what will pursue him. He expects the LORD’s care to continue wherever his life takes him.
That confidence does not make every event in his life good. A person’s betrayal remains wrong, and grief does not stop hurting because we believe God is merciful. What David gives us is a reason to depend on the LORD’s character through those experiences. His mercy is not restricted to the days when we understand what He is doing.
The final line tells us what David wants beyond relief from a particular danger: “And I will dwell in the house of the LORD Forever.” He wants to remain with the One who has cared for him. In Psalm 27:4, he expresses the same desire to dwell in the LORD’s house and behold His beauty. God’s presence is itself something David seeks, even while he is also asking for protection.
As Christians, we can read that desire for lasting fellowship alongside Jesus’ promise in John 14:1–3. He tells His disciples that He is preparing a place in His Father’s house and will receive them to Himself so that they can be where He is. Our hope therefore reaches beyond being sustained through one more difficulty in this life. The Lord who cares for His people intends to bring them into His presence.
Jesus Is the Good Shepherd
The connection between Psalm 23 and Jesus grows out of the way Scripture continues to describe God’s care. In Ezekiel 34, the LORD sends the prophet Ezekiel to rebuke Israel’s shepherds. He is speaking about leaders entrusted with His people, and He accuses them of feeding themselves while neglecting the flock. The weak had not been strengthened, the injured had not been cared for, and the scattered had not been sought.
God then promises to do what those leaders failed to do. He will seek His sheep and bring them back, and He will feed them and bind up the injured. He also promises one shepherd over them, whom He calls His servant David. I understand that promise to point to the Messiah, God’s promised King from David’s line. Luke 1:32–33 identifies Jesus as the One who will receive David’s throne and reign over a kingdom that will never end.
When Jesus speaks about shepherding in John 10, He explains the difference between a hired worker who runs away from a wolf and a shepherd who cares for the sheep. The danger reveals whether the person will remain with the flock or abandon it. Jesus then tells us what His own care will cost:
“I am the good shepherd. The good shepherd gives His life for the sheep.”
Later in that chapter, Jesus explains that He lays His life down willingly and has authority to take it up again (John 10:17–18). Fully God and fully man, He lived without sin and offered Himself as the perfect sacrifice for sinners. Wicked men inflicted suffering on His innocent body and crucified Him. The Father did not punish or abandon Him. His saving sacrifice was complete through His shed blood and death, and after His burial He rose bodily from the grave.
His death is why the image of a shepherd gives us more than encouragement to endure a hard day. Because we have sinned against God, we need to be forgiven and brought back into a right relationship with Him. We receive salvation by God’s grace through faith in Christ, turning from sin to the Savior who gave Himself for us. Our obedience cannot pay for that gift, but the new life He gives changes the way we live (Ephesians 2:8–10).
The apostle Paul brings the resurrection and that changed life together near the end of Hebrews:
“Now may the God of peace who brought up our Lord Jesus from the dead, that great Shepherd of the sheep, through the blood of the everlasting covenant, make you complete in every good work to do His will…”
The prayer asks the God who raised Jesus to equip His people to do His will. The great Shepherd is alive, and His care includes leading the people He has saved into obedience. That fits the direction already given in Psalm 23, where the LORD restores David and leads him in righteousness. The study on Jesus as the Good Shepherd examines His words and work in greater detail.
In Revelation 7, John records a vision that shows where this shepherding care leads. He sees a great multitude before God’s throne, and an elder identifies them as people who have come out of the great tribulation, a time of terrible suffering. They have been cleansed through the blood of the Lamb. The Lamb is Jesus, the perfect sacrifice who gave His life for them. Those people have endured suffering, yet the vision describes their hunger and thirst coming to an end:
“For the Lamb who is in the midst of the throne will shepherd them and lead them to living fountains of waters. And God will wipe away every tear from their eyes.”
The One called the Lamb is also the One who shepherds them. His sacrifice has brought them to God, and His care continues in God’s presence. I find that to be a fitting answer to the fear raised by the valley in Psalm 23. Jesus gives His sheep eternal life and promises that no one can snatch them from His hand (John 10:27–29). Even death cannot place His people beyond His ability to keep them.
Following the Shepherd on the Path We Face
Once we have seen what the Shepherd does, calling Him my Shepherd becomes a personal confession of dependence. I cannot honestly ask for His direction while deciding in advance that I will only follow it if it agrees with what I already want. His care gives me a reason to bring those desires under His Word.
Suppose a promotion requires me to falsify records. I may have questions about the future and real concerns about providing for my family, but the immediate decision does not require a private sign. Dishonesty is already contrary to God’s instruction. Trusting the Shepherd means refusing it and depending on Him for what follows, even if I cannot yet see another opportunity.
The same reasoning applies when affection draws someone toward sexual sin or when bitterness becomes an excuse to neglect a clear duty. A feeling of relief does not make disobedience right. Because the Shepherd leads in righteousness, I need to let what He has said correct what I want to do. Receiving that correction belongs to trusting His care.
We can also bring Him the fear that remains after an obedient decision. David’s movement from speaking about the LORD to speaking directly to Him gives us a way to pray. Instead of waiting until we feel calm, we can tell Him what frightens us and ask Him to help us trust Him there. Saying that He is with us does not require pretending we have already stopped hurting.
When opposition continues, the prepared table gives us reason to look for the LORD’s provision without first demanding that every enemy become friendly. Their hostility does not determine whether He will care for His people. I can ask for the help I need today and take the next obedient step while leaving the outcome with the One who knows the way.
My Final Thoughts
David’s confidence in Psalm 23 rests on the LORD who feeds him, restores him, and remains with him when the way becomes dangerous. The valley does not cancel that care, and the enemies do not have the final say over the guest God has welcomed. Jesus has shown us how far the Good Shepherd’s care reaches by giving His life for His sheep and rising again to keep them.
I want that assurance to shape the way I receive His direction now. When His Word corrects a choice I want to make, I have reason to follow Him. When grief leaves me frightened, I can bring Him that fear. The Shepherd who gives His people eternal life will not lose them on the way to His presence.
