Because of his zeal for Him and His Kingdom, God used David mightily as a prophet to flesh out many of those promises in his writings, the Psalms. In his last words, David refers to the fact that God had inspired him: "The Spirit of the LORD spoke by me, and His word was on my tongue" (II Samuel 23:2). We should not understand this to mean that God inspired him only in his last words but that the Holy Spirit was behind his entire contribution to the Old Testament, which was primarily the compositions we know as "psalms."
Even so, his last words have struck commentators down through the ages as unmistakably prophetic and specifically Messianic in tone. Adam Clarke writes, "The words of this song contain a glorious prediction of Messiah's kingdom and conquests, in highly poetic language." Of II Samuel 23:1-7, the Keil and Delitzsch Commentary states:
[The chapter contains] the prophetic will and testament of the great king, unfolding the importance of his rule in relation to the sacred history of the future. . . . [T]hese "last words" contain the divine seal of all that he has sung and prophesied in several psalms concerning the eternal dominion of his seed, on the strength of the divine promise which he received through the prophet Nathan, that his throne should be established for ever. . . . These words are not merely a lyrical expansion of that promise, but a prophetic declaration uttered by David at the close of his life and by divine inspiration, concerning the true King of the kingdom of God.
A substantial number of his psalms are clearly prophetic, even some of those that seem, on the surface, to describe his own feelings of despair and abandonment during the low periods of his life. With just a slight shift in perspective, they can often be seen as describing Christ's struggles to master His own human nature and trust in God for deliverance. In fact, if we bring a prophetic eye to the reading of many of David's psalms, we can perceive their predictive nature.
Richard T. Ritenbaugh
David the Prophet
Other Forerunner Commentary entries containing 2 Samuel 23:2:
2 Samuel 23:1-7