Samuel
2 Samuel 23:1BSB·traditional attribution

These are the last words of David: “The oracle of David son of Jesse, the oracle of the man raised on high, the one anointed by the God of Jacob, and the sweet psalmist of Israel:

John Gill Reformed Baptist @doctorgill

Now these be the last words of David,.... Which refer not to the psalm in the preceding chapter, but to what follows; not the last words he spoke, for he said many things afterwards; for the advice he gave to Solomon, and the instructions to him about building the temple, were delivered after this time; but these were the last after he had finished the...

Geneva Bible Notes Reformed @genevanotes

Now these [be] the last words of David. David the son of Jesse said, and the man [who was] raised up on high, the anointed of the God of Jacob, and the sweet psalmist of Israel, said, (a) Which he spoke after he had written the psalms.

Adam Clarke Methodist @methodicalclarke

These be the last words of David - I suppose the last poetical composition is here intended. He might have spoken many words after these in prose, but none in verse. Other meanings are given; this I prefer. The words of this song contain a glorious prediction of the Messiah's kingdom and conquests, in highly poetic language.