In "God's Word for Today" David Woods writes:
The faithful respond to crises by expressing faith in God. David was surrounded by wicked nations. He was distressed. Instead of uttering a panicky prayer, however, he worshiped God, and while doing so poured out his concerns and desires to God.
Source: Studies in the Psalms: Adult Teacher's Insights, page 5.