John Gills Exposition of the Bible Commentary

Verse 36 (Psalms 107:36)

And there he maketh the hungry to dwell ,.... In those fruitful places which they find agreeable to them, and so fix upon them as the places of their abode, and build houses, and dwell there; having all the conveniences of life, which they wanted elsewhere: so such as hunger and thirst after righteousness make to such places where the waters are, the word is preached, and ordinances administered; and here they take up their dwelling, their bread being given them, and their waters sure unto them.

That they may prepare a city for habitation ; those poor necessitous persons, as they were when they first came; building houses, and others continually coming to them, by degrees form a well regulated city, which are a large number of inhabitants: which may be considered as an emblem of the church of God, often compared to a city; and is an habitation for God, and where saints desire and delight to dwell.

- John Gills Exposition of the Bible Commentary