21 And the days of David were at hand that he should die; and he enjoined Solomon his son saying, 2 I go the way of all the earth: be of good courage therefore, and be a man; 3 and keep the charge of Jehovah thy God, to walk in his ways, to keep his statutes, and his commandments, and his ordinances, and his testimonies, as it is written in the law of Moses, that thou mayest prosper in all that thou doest and whithersoever thou turnest thyself; 4 that Jehovah may confirm his word which he spoke concerning me, saying, If thy sons take heed to their way, to walk before me in truth with all their heart and with all their soul, there shall not fail thee, said he, a man upon the throne of Israel. 5 And thou knowest also what Joab the son of Zeruiah did to me, what he did to the two captains of the hosts of Israel, to Abner the son of Ner, and to Amasa the son of Jether, whom he slew, and shed the blood of war in peace, and put the blood of war upon his girdle that was about his loins, and upon his sandals that were on his feet. 6 And thou shalt do according to thy wisdom, and not let his hoar head go down to Sheol in peace. 7 But shew kindness to the sons of Barzillai the Gileadite, and let them be of those that eat at thy table; for so they came up to me when I fled because of Absalom thy brother. 8 And behold, there is with thee Shimei the son of Gera, the Benjaminite of Bahurim, who cursed me with a grievous curse in the day that I went to Mahanaim; but he came down to meet me at the Jordan, and I swore to him by Jehovah saying, I will not put thee to death with the sword. 9 And now hold him not guiltless; for thou art a wise man, and thou shalt know what thou oughtest to do to him; but bring his hoar head down to Sheol with blood.
10 And David slept with his fathers, and was buried in the city of David. 11 And the days that David reigned over Israel were forty years: he reigned seven years in Hebron, and he reigned thirty-three years 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.