In 23:1-7 we have the last words of David.
These words are the declaration of David the son of Jesse (v. 1b).
Verse 1c says that these are the words of the man who had been raised up on high, the anointed of the God of Jacob, the one lovely (pleasant) in the psalms of Israel.
In verse 2 David said that the Spirit of Jehovah spoke through him and that His word was on his tongue.
David went on to declare that the God and the Rock of Israel spoke to him (v. 3a).
Verse 3b says that David, typifying Christ, ruled among men righteously with the fear of God.
Typifying Christ, David was like the light of the morning when the sun rises without clouds, as when the tender grass sprouts up from the earth at the sun's shining after a rain (v. 4). When Christ rules among men righteously with the fear of God, He is like the light of the morning when the sun rises, as when the tender grass sprouts up from the earth at the sun's shining after a rain.
In verse 5a David continued by indicating that his house was so with God, for God had made an eternal covenant with him, ordered in all things and secure. Then David asked, "For all my salvation and all my desire,/Will He not indeed make them grow?" (v. 5b).
David concluded by saying that the wicked will be like thorns to be thrust away and will be burned with fire in their place (vv. 6-7).