David recalled that the causes of men's troubles are sins and disobedience to God. "You have made the earth tremble; You have broken it" (v2). The anger of God against sin, is the only cause of all misery, private or public, that has been, or shall be. In all these cases there is no remedy, but by returning to the Lord with repentance, faith, and prayer.
In God's displeasure our troubles began, but in our repentance God's favor and blessings come. If Christ is in us, all things shall be for our eternal pleasure. This is the reason for Christ’s sacrificial works; to redeem us from our sufferings. As the psalmist says, "Through God we will do valiantly, for it us He who will tread down our enemies" (v12).
God bless you all.