Psalm 23 is a classic passage that portrays us as sheep and God as our Shepherd:
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. (verses 1–3)
Sheep are so dumb that sometimes they have to be forced to eat their food. If a shepherd doesn't guide them, they will stay in the same place, poking in the dirt, even after the grass is long gone. They also have to be led to water so they will drink.
This psalm goes on to say, "Your rod and Your staff, they comfort me" (verse 4). The shepherd has his rod and his staff, which he has to use with his wayward flock. The rod is a club, and the staff is a long, crooked instrument. When sheep go astray, their shepherd pulls them in with his staff. If a predator or a threat comes, he uses his rod to protect the flock. But sometimes he uses his rod on his sheep if he has to discipline them so they will not end up dead somewhere.
Even though God loves us and has our best interests in mind, sometimes we go astray. So what does God do in those circumstances? He looks for us.
In Luke 15, Jesus gives three pictures of how God searches for us. One is that of a shepherd who leaves his 99 sheep and goes looking for the one that went astray. He does not stop searching until he finds it. And that is something we need to remember about God. He will keep seeking. Despite our wandering, He never gives up on us.