Passage
And David spoke to Yahweh the words of this song in the day that Yahweh delivered him from the hand of all his enemies and from the hand of Saul.
And David spoke to Yahweh the words of this song in the day that Yahweh delivered him from the hand of all his enemies and from the hand of Saul.
2 Samuel 22:1 And David spoke to Yahweh the words of this song in the day that Yahweh delivered him from the hand of all his enemies and from the hand of Saul.
2 Samuel 22:2 He said, “Yahweh is my rock and my fortress and my deliverer;
2 Samuel 22:3 My God, my rock, in whom I take refuge, My shield and the horn of my salvation, my stronghold and my refuge; My savior, You save me from violence.
The verse centers on "david", "spoke", "yahweh", "words", "song", "delivered", and "hand". It is saying that the verse draws attention to "david" and "spoke", so its meaning should be read from those terms before moving to application.
The next verse adds "He said Yahweh is my rock and...", so "david" and "spoke" should be read forward into that movement. In 2 Samuel context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "david" and "spoke" with trust shaped by these words, not by a vague optimism outside the passage.