“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, The Spirit of the LORD spake by me, and His word was in my tongue. The God of Israel said, the Rock of Israel spake to me, He that ruleth over men must be just, ruling in the fear of God. And he shall be as the light of the morning, when the sun riseth, even a morning without clouds; as the tender grass springing out of the earth by clear shining after rain. Although my house be not so with God; yet He hath made with me an everlasting covenant, ordered in all things, and sure: for this is all my salvation, and all my desire, although He make it not to grow.” 2 Samuel 23:1-5 (KJV)
David realizes that the words he is receiving and giving to the reader are the inspired revelation from God. They are words for every nation, people and tongue.
David also knew that he had failed as a king to be just and righteous in the eyes of God; yet God had made an “everlasting covenant” with him, and he knew that the Messiah of Israel would be the ultimate fulfillment of that promise. The Messiah is Jesus the Christ, Son of David, Son of God, God the Son, and the Son of Man; the Rock of Israel.
In receiving the words of God David heard, as do we, that if a man is to be a ruler he must rule in the “fear of God”. “God” is “‘Elohim” the fullness of the Godhead; Father, Son and Holy Spirit. This type of king is only the One who has come as a baby in a manger, died on the cross for our sins, was raised again bodily from the grave, and is returning as the King of kings, and Lord of lords.
All the kingdoms of men fail. None can stand before the Holy and Just King. Also see Daniel 4:17, 25, 32; 5:21.