Psalm 23 uses two metaphors: that God is like our shepherd and like a gracious host. That is, he helps us to find food, water, work, love, friends and all that we need. He also protects us from evil.
The Lord is my shepherd; there is nothing I lack.
In green pastures he makes me lie down; to still waters he leads me;
he restores my soul.
He guides me along right paths for the sake of his name.
Even 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 comfort me.
You set a table before me in front of my enemies;
You anoint my head with oil; my cup overflows.
Indeed, goodness and mercy will pursue me all the days of my life;
I will dwell in the house of the LORD for endless days.