John Gills Exposition of the Bible Commentary - 2 Samuel 23:2
The Spirit of the Lord spake by me ,.... The psalms and songs he composed were not the fruits of his own genius, but were written by him under the inspiration of the Spirit of God; by whom holy men of God, the penmen of the Scriptures, spoke, even as they were moved by the Holy Ghost, of whom David was one, being a prophet; see Acts 1:16 Acts 2:30 ; so the Targum here,"David spoke by the spirit of prophecy of the Lord:'or spake "in me" F8 בי "in me", Montanus, Junius &... read more
Matthew Henry's Complete Commentary - 2 Samuel 23:1-7
We have here the last will and testament of king David, or a codicil annexed to it, after he had settled the crown upon Solomon and his treasures upon the temple which was to be built. The last words of great and good men are thought worthy to be in a special manner remarked and remembered. David would have those taken notice of, and added either to his Psalms (as they are here to that in the foregoing chapter) or to the chronicles of his reign. Those words especially in 2 Sam. 23:5; though... read more