Commentators note that this verse is part of a larger song of praise, nearly identical to Psalm 18. It was composed by David on the day God delivered him from his enemies. The primary focus of the commentaries is not on the specific principle in this verse, but on the overall context: that remarkable acts of God's deliverance should be met with immediate and heartfelt praise, with all our hope ultimately resting in the great Redeemer.