Psalm 107:41 in the King James Version
Yet setteth he the poor on high from affliction, and maketh him families like a flock.
Context
40 He pours contempt on princes, and causes them to wander in a trackless waste.
41 Yet he lifts the needy out of their affliction, and increases their families like a flock.
42 The upright will see it, and be glad. All the wicked will shut their mouths.