David's last words to Solomon were a charge. He was going the way of all the earth, so Solomon must be strong. Above all, Solomon must keep God's statutes, commandments, and ordinances as written in the law of Moses. David tied the future of the throne to faithfulness. God had promised that if David's sons walked before Him in truth with all their heart and soul, David would not lack a man on the throne of Israel.
David also passed on unfinished business. He told Solomon to show kindness to Barzillai's sons and to act wisely toward Joab and Shimei, men whose guilt had never been dealt with. After forty years as king, David slept with his fathers and was buried in David's city.
Solomon's reign began with tests. Adonijah asked for Abishag, a request that pointed toward the throne, and Solomon saw it as a new plot. Solomon removed Abiathar from the priesthood, which fulfilled what God had said about Eli's house. Joab, Adonijah, and Shimei were put to death for their wrongs. In this way, the kingdom was established in Solomon's hand. In the New Testament, Paul gives a similar charge to Timothy: be strengthened in the grace that is in Christ Jesus (2 Timothy 2:1).