21 As the time of King David's death approached, he gave this charge to his son Solomon: 2 "I am going where everyone on earth must someday go. Take courage and be a man. 3 Observe the requirements of the Lord your God, and follow all his ways. Keep the decrees, commands, regulations, and laws written in the Law of Moses so that you will be successful in all you do and wherever you go. 4 If you do this, then the Lord will keep the promise he made to me. He told me, 'If your descendants live as they should and follow me faithfully with all their heart and soul, one of them will always sit on the throne of Israel.' 5 "And there is something else. You know what Joab son of Zeruiah did to me when he murdered my two army commanders, Abner son of Ner and Amasa son of Jether. He pretended that it was an act of war, but it was done in a time of peace, staining his belt and sandals with innocent blood. 6 Do with him what you think best, but don't let him grow old and go to his grave in peace. 7 "Be kind to the sons of Barzillai of Gilead. Make them permanent guests at your table, for they took care of me when I fled from your brother Absalom. 8 "And remember Shimei son of Gera, the man from Bahurim in Benjamin. He cursed me with a terrible curse as I was fleeing to Mahanaim. When he came down to meet me at the Jordan River, I swore by the Lord that I would not kill him. 9 But that oath does not make him innocent. You are a wise man, and you will know how to arrange a bloody death for him. "
10 Then David died and was buried with his ancestors in the City of David. 11 David had reigned over Israel for forty years, seven of them in Hebron and thirty-three in Jerusalem.
Matthew Henry's Commentary on 1 Kings 2:1-11
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.
Commentary on 1 Kings 2:5-11
(Read 1 Kings 2:5-11)
These dying counsels concerning Joab and Shimei, did not come from personal anger, but for the security of Solomon's throne, which was the murders he had committed, but would readily repeat them to carry any purpose; though long reprieved, he shall be reckoned with at last. Time does not wear out the guilt of any sin, particularly of murder. Concerning Shimei, Hold him not guiltless; do not think him any true friend to thee, or thy government, or fit to be trusted; he has no less malice now than he had then. David's dying sentiments are recorded, as delivered under the influence of the Holy Ghost, 2 Samuel 23:1-7. The Lord discovered to him the offices and the salvation of that glorious personage, the Messiah, whose coming he then foretold, and from whom he derived all his comforts and expectations. That passage gives a decided proof that David died under the influence of the Holy Ghost, in the exercise of faith and hope.