Psalms 107:41 Midrash

וַיְשַׂגֵּ֣ב אֶבְי֣וֹן מֵע֑וֹנִי וַיָּ֥שֶׂם כַּ֝צֹּ֗אן מִשְׁפָּחֽוֹת׃

Yet setteth He the needy on high from affliction, And maketh his families like a flock.

Read midrashic interpretation of Psalms 107:41: and classical rabbinic exegesis.