1 Kings - Chapter 22

Frequently the people of God are described as sheep, and God as their shepherd.  And this analogy is used by David in Psalm 23 - "The Lord is my shepherd, I shall not want" and this is illustrated when we first meet David, looking after his father's sheep.

In this chapter King Ahab is talking with a prophet of God, Micaiah, who prophesies about Ahab's death:

"Then Micaiah told him, “In a vision I saw all Israel scattered on the mountains, like sheep without a shepherd. And the Lord said, ‘Their master has been killed. Send them home in peace.’”

Ahab was supposed to be following David in leading the people as their shepherd.  And the ultimate example of this is Jesus himself, who describes himself as the good shepherd who lays down his life for his sheep.