David’s final public proclamation is a poem about the ideal King, in which he expands upon the expectation for the son Yahweh promised Adam in Genesis 3:15. The Ideal king (man) rises like the sun, watering and weeding his kingdom like a master gardener, a greater Adam and a greater David.
The Lord promised to raise up a new king from the stump of Jesse. How did Jesse's tree become a stump? The books of Samuel tell the story of David's rise to King and his successes and failures on the throne. The life of David is a type of the life of Christ that is full of warnings and encouragement for those who follow Christ.