King David expresses his absolute dependence on God during times of danger through a dense array of imagery drawn from nature, warfare, and shelter. The sheer abundance of titles and synonyms reflects the multitude of troubles he experienced throughout his life, illustrating that God is everything to him [מצודת ציון, שטיינזלץ]. Specifically, the ten expressions of praise used here correspond to the ten primary enemies from whom David was rescued. In contrast, the parallel song in the Book of Psalms, which is intended as a prayer for any person, features a shorter list [אברבנאל].
David envisions God as a rock, a metaphor that operates on several levels. Physically, it evokes a massive boulder that offers travelers a safe haven from harsh rain and winds [רש"י], serving as a symbol of eternal strength and stability [מצודת דוד, רלב"ג, רד"ק]. Beyond this physical imagery, the concept points to God as the Creator. By invoking this idea, David appeals to God for mercy upon His own handiwork [אהבת יהונתן]. It also connects back to the God of Abraham, who is similarly referred to as a rock [אלשיך]. In this protective space, taking refuge means actively hiding and covering oneself to receive Divine help [רש"י].
God equips a person with two distinct ways to handle threats: an offensive force to strike down the enemy, and a defensive stronghold for escape [אברבנאל]. The defensive aspect is described as a source of support to lean upon [רש"י, רלב"ג], and a secure haven where one can flee from the terror of an enemy [רש"י, מצודת דוד, מצודת ציון]. The offensive aspect is captured through the imagery of an animal's horn, representing the raw power and strength of an ox charging into battle [רד"ק, אברבנאל, צאינה וראינה]. Yet, because a horn can easily be used to cause senseless harm, David specifically highlights that this is a horn of salvation. God exercises His immense power exclusively for good, using it only to rescue the innocent from evil [רלב"ג].
A different perspective views the horn not just as a weapon, but as a symbol of David's eternal kingship. David was anointed with oil poured from an animal's horn, whereas his predecessor, Saul, was anointed from an earthen flask. If an earthen vessel becomes impure, it cannot be cleansed and must be broken. A horn, however, is made of bone and can be purified, symbolizing that the Davidic dynasty will endure forever [חומת אנך, אברבנאל, אהבת יהונתן].
Finally, David expresses gratitude for being rescued from violence. On a basic level, this refers to physical protection from violent men, robbers, and thieves [מצודת דוד, רד"ק]. However, other commentators shift the focus from physical safety to spiritual and moral salvation. In this view, David is thanking God for preventing him from committing acts of violence himself. God granted him the inner strength to flee from Saul rather than taking the opportunity to kill him, teaching that saving one's soul from sin is an even greater miracle than saving one's body from death [אלשיך]. Furthermore, David gives thanks that he never became a corrupt, oppressive ruler who confiscated land by force, but rather merited to govern his kingdom with righteousness, justice, and absolute financial integrity [חומת אנך, אהבת יהונתן].