The following verses contain a second major reason for praising God, namely His providential governing of the world.
107:33-38 God controls nature so that it becomes His instrument of cursing or blessing His people. The repetition of the phrase "an inhabited city"(v. 36, cf. vv. 4, 7) is a unique feature of this psalm. It may refer to the captives returning to Jerusalem, their long anticipated destination in the three returns from Babylon that the Old Testament records.
107:39-43 The Lord also controls the experiences of people. He humbles the proud, but He also exalts the humble. The godly observe this and rejoice, but the unrighteous keep silent. A wise person will reflect on these matters and meditate on God's loyal love (hesed).
This whole psalm exalts the loyal love of God (vv. 1, 8, 15, 21, 31). It teaches God's people to observe God's loyalty to them when He saves them after they call on Him. He does this providentially by controlling the forces of nature and by arranging the circumstances of their lives. The proper godly response to this grace is to give thanks to Him and to tell others about His wonderful works.