2 "I am about to go the way of all the earth. Be strong, and show yourself a man, 3 and keep the charge of the Lord your God, walking in his ways and keeping his statutes, his commandments, his rules, and his testimonies, as it is written in the Law of Moses, that you may prosper in all that you do and wherever you turn, 4 that the Lord may establish his word that he spoke concerning me, saying, 'If your sons pay close attention to their way, to walk before me in faithfulness with all their heart and with all their soul, you shall not lack[1] a man on the throne of Israel.'

Matthew Henry's Commentary on 1 Kings 2:2-4

Commentary on 1 Kings 2:1-4

(Read 1 Kings 2:1-4)

David's charge to Solomon is, to keep the charge of the Lord. The authority of a dying father is much, but nothing to that of a living God. God promised David that the Messiah should come from his descendants, and that promise was absolute; but the promise, that there should not fail of them a man on the throne of Israel, was conditional; if he walks before God in sincerity, with zeal and resolution: in order hereunto, he must take heed to his way.