Psalm 78:67-72 ESV
He rejected the tent of Joseph;
he did not choose the tribe of Ephraim,
but he chose the tribe of Judah,
Mount Zion, which he loves.
He built his sanctuary like the high heavens,
like the earth, which he has founded forever.
He chose David his servant
and took him from the sheepfolds;
from following the nursing ewes he brought him
to shepherd Jacob his people,
Israel his inheritance.
With upright heart he shepherded them
and guided them with his skillful hand.
ESV: English Standard Version 2016