Kings as shepherds
A metaphor in the ancient world that considered kings similar to shepherds in that they care for and watch their sheep like a king should care for and watch over his people.
Key passages
2 Sa 5:2

For some time, when Saul was king over us, you were leading Israel in and out. Yahweh had said to you, ‘You shall be the shepherd of my people Israel, and you will be the leader over Israel.’ ”

1 Ch 11:2

For some time now, even when Saul was king, you were the one who led the army of Israel in battle. And Yahweh your God said to you, ‘You will shepherd my people Israel and will be leader over my people Israel.’ ”

Ps 78:70–72

And he chose David his servant and took him from the sheepfolds. He brought him from following nursing ewes to shepherd Jacob, his people, and Israel, his inheritance. And he shepherded them according to the integrity of his heart, and led them by the skillfulness of his hands.

Is 44:28

who says of Cyrus, ‘My shepherd,’ and he shall carry out all my wishes; and saying of Jerusalem, ‘It shall be rebuilt,’ and the temple, ‘It shall be founded.’ ”

Eze 37:24

“ ‘ “And my servant David will be king over them, and one shepherd will be for all of them, and in my regulations they will go, and my statutes they will observe, and they will do them.

Re 12:5

And she gave birth to a son, a male child, who is going to shepherd all the nations with an iron rod, and her child was snatched away to God and to his throne.