Psalm 23:4
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.
Notice that the speaker is walking through the valley. The speaker isn’t going to camp there or fear any evil while passing through. The speaker’s confidence is in the Lord, who is walking with them. God protects with His rod and staff, providing comfort even during the trial. The focus shouldn’t be on how dark the valley is but how much light God will shine to help us through.