David used his sunset years to point Solomon and the country what would honor the Lord and make their lives successful before Him.