Matthew 9:36

9:36 When he saw the crowds, he had compassion on them because they were bewildered and helpless, like sheep without a shepherd.

Matthew 25:32

25:32 All the nations will be assembled before him, and he will separate people one from another like a shepherd separates the sheep from the goats.