David is not only a type and shadow of Jesus, but through Jesus, the type and shadow of every New Testament believer. We are called to a greater glory and anointed with a greater power - to be a royal priesthood and a holy nation.
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.