As the Israelites are in exile, God promises that He will rescue the people, who are like sheep scattered. He will be their Shepherd and will seek out the lost and the strayed sheep. Fast forward many years, and we know that Jesus is the Good Shepherd who seeks out the lost and straying sheep and rescues them through His death and resurrection, so we will dwell in the house of the Lord forever.