Samuel
2 Samuel 22:1BSB·traditional attribution

And David sang this song to the LORD on the day the LORD had delivered him from the hand of all his enemies and from the hand of Saul.

Matthew Henry Presbyterian @wholebiblehenry

Observe here, I. That it has often been the lot of God's people to have many enemies, and to be in imminent danger of falling into their hands. David was a man after God's heart, but not after men's heart: many were those that hated him, and sought his ruin; Saul is particularly named, either, 1. As distinguished from his enemies of the heathen nations.

John Gill Reformed Baptist @doctorgill

And David spake unto the Lord the words of this song in the day that the Lord had delivered him out of the hand of all his enemies, and out of the hand of Saul. See Gill on Psa 18:1. . 2 Samuel 22:2 sa2 22:2 sa2 22:2 sa2 22:2And he said, The Lord is my rock, and my fortress, and my deliverer. See Gill on Psa 18:2.

Geneva Bible Notes Reformed @genevanotes

And David spake unto the LORD the words of this song in the day [that] the LORD had delivered him out of the hand of all his enemies, and out of the hand of Saul: (a) In token of the wonderful benefits that he received from God.