Verses 1–7
Second Samuel - Chapter 23
Last Inspired Words of David, vs. 1-7
By "the last words of David" is not meant the last words he ever spoke, but the last words of inspiration of the Lord which he uttered. David spoke many times in his psalms and prayers by the inspiration of God, most of them recorded in the book of Psalms. How near the end of David’s life he spoke these things cannot be known, though of course it must have been quite near it. David did a number of things from his death bed, as recorded in First Kings, chapter 1 and 2. The events of First Chronicles, chapters 22-29 also occur near the end of his life. Sometime contemporarily he must have received these words of the Lord and repeated them, perhaps to Solomon particularly.
It is interesting to note the accession of rank by which David speaks of himself in verse one. First, he is simply David, the son of Jesse. The lowly patronymic by which Saul and others had mocked David’s ancestry he admitted. David recognized his humble origin, which all must do to be exalted in the Lord as he was (1 Peter 5:6). Second, David called himself the man whom God raised up on high to become "the anointed of the God of Jacob." There seems to be Messianic import in this, in that the Lord raised up His Anointed, Jesus Christ. He also raises those who humbly come repenting to and trusting Him for salvation (Ephesians 2:4-7). Finally, he speaks of himself as "the sweet psalmist of Israel." David lacked some things in sweetness of character, but his songs, inspired of God, were a sweet legacy to all the world after him. It reminds one of the joyous singing which shall be in heaven eternally (Revelation 15:3; cf. Ephesians 5:19; Colossians 3:16).
In verse two David lays claim to divine inspiration. It may be that some of the Old Testament writers did not realize that they were writing under the inspiration of the Holy Spirit, a possibility that has been debated, but David knew that he spoke so at least some of the time (note 2 Peter 1:21). By inspiration the Lord informed David how rulers should rule over their subjects. They must be just, or fair and honest, and judge in the fear of the Lord. No man is fit to rule others who does not recognize that God judges him and his power is by His will.
God showed David that the rule of the king should be as enlightening to his people as the dawn of a new day and the rising of the sun. It should be as fair as the cloudless morning and as refreshing to his subjects as the rain to the grass. But David did not claim to be such a ruler, for he knew his shortcomings. Yet God had made it so by the covenant he had made with him, everlastingly ordered and sure (2 Samuel 7:4-11). This covenant David saw as the salvation of his house, according to all he could desire. The King James Version reads, "although he make it not to grow," but the American Standard reads, "Will he not indeed make it grow?" which seems more in keeping with the context.
The passage closes with an application to the wicked rulers. They are worthless sons of Belial, as liable to harm their associates as are thorns those who grasp them. Like the thorns they must be handled with iron, held down by a spear, taken and burned with fire in the place where they are found. This is like the unsaved who, found in their sin, are consigned to the eternal lake of fire (Revelation 21:8).