King David gave his son Solomon a charge before his death: Observe God's requirements, follow His ways by keeping His laws and decrees so that Solomon would be successful. If Solomon did this, God would keep His promise that one of David's descendants would always sit on the throne of Israel.