26 And to Abiathar the priest the king said, "Go to Anathoth, to your own fields, for you are deserving of death; but I will not put you to death at this time, because you carried the ark of the Lord God before my father David, and because you were afflicted every time my father was afflicted." 27 So Solomon removed Abiathar from being priest to the Lord, that he might fulfill the word of the Lord which He spoke concerning the house of Eli at Shiloh. 28 Then news came to Joab, for Joab had defected to Adonijah, though he had not defected to Absalom. So Joab fled to the tabernacle of the Lord, and took hold of the horns of the altar. 29 And King Solomon was told, "Joab has fled to the tabernacle of the Lord; there he is, by the altar." Then Solomon sent Benaiah the son of Jehoiada, saying, "Go, strike him down." 30 So Benaiah went to the tabernacle of the Lord, and said to him, "Thus says the king, 'Come out!' " And he said, "No, but I will die here." And Benaiah brought back word to the king, saying, "Thus said Joab, and thus he answered me." 31 Then the king said to him, "Do as he has said, and strike him down and bury him, that you may take away from me and from the house of my father the innocent blood which Joab shed. 32 So the Lord will return his blood on his head, because he struck down two men more righteous and better than he, and killed them with the sword--Abner the son of Ner, the commander of the army of Israel, and Amasa the son of Jether, the commander of the army of Judah--though my father David did not know it. 33 Their blood shall therefore return upon the head of Joab and upon the head of his descendants forever. But upon David and his descendants, upon his house and his throne, there shall be peace forever from the Lord." 34 So Benaiah the son of Jehoiada went up and struck and killed him; and he was buried in his own house in the wilderness.

35 The king put Benaiah the son of Jehoiada in his place over the army, and the king put Zadok the priest in the place of Abiathar. 36 Then the king sent and called for Shimei, and said to him, "Build yourself a house in Jerusalem and dwell there, and do not go out from there anywhere. 37 For it shall be, on the day you go out and cross the Brook Kidron, know for certain you shall surely die; your blood shall be on your own head." 38 And Shimei said to the king, "The saying is good. As my lord the king has said, so your servant will do." So Shimei dwelt in Jerusalem many days. 39 Now it happened at the end of three years, that two slaves of Shimei ran away to Achish the son of Maachah, king of Gath. And they told Shimei, saying, "Look, your slaves are in Gath!" 40 So Shimei arose, saddled his donkey, and went to Achish at Gath to seek his slaves. And Shimei went and brought his slaves from Gath. 41 And Solomon was told that Shimei had gone from Jerusalem to Gath and had come back. 42 Then the king sent and called for Shimei, and said to him, "Did I not make you swear by the Lord, and warn you, saying, 'Know for certain that on the day you go out and travel anywhere, you shall surely die'? And you said to me, 'The word I have heard is good.' 43 Why then have you not kept the oath of the Lord and the commandment that I gave you?" 44 The king said moreover to Shimei, "You know, as your heart acknowledges, all the wickedness that you did to my father David; therefore the Lord will return your wickedness on your own head. 45 But King Solomon shall be blessed, and the throne of David shall be established before the Lord forever." 46 So the king commanded Benaiah the son of Jehoiada; and he went out and struck him down, and he died. Thus the kingdom was established in the hand of Solomon.

Matthew Henry's Commentary on 1 Kings 2:26-46

Commentary on 1 Kings 2:26-34

(Read 1 Kings 2:26-34)

Solomon's words to Abiathar, and his silence, imply that some recent conspiracies had been entered into. Those that show kindness to God's people shall have it remembered to their advantage. For this reason Solomon spares Abiathar's life, but dismisses him from his offices. In case of such sins as the blood of beasts would atone for, the altar was a refuge, but not in Joab's case. Solomon looks upward to God as the Author of peace, and forward to eternity as the perfection of it. The Lord of peace himself gives us that peace which is everlasting.

Commentary on 1 Kings 2:35-46

(Read 1 Kings 2:35-46)

The old malignity remains in the unconverted heart, and a watchful eye should be kept on those who, like Shimei, have manifested their enmity, but have given no evidence of repentance. No engagements or dangers will restrain worldly men; they go on, though they forfeit their lives and souls. Let us remember, God will not accommodate his judgment to us. His eye is over us; and let us strive to walk as in his presence. Let our every act, word, and thought, be governed by this great truth, that the hour is quickly coming when the smallest circumstances of our lives shall be brought to light, and our eternal state be fixed by a righteous and unerring God. Thus Solomon's throne was established in peace, as the type of the Redeemer's kingdom of peace and righteousness. And it is a comfort, in reference to the enmity of the church's enemies, that, how much soever they rage, it is a vain thing they imagine. Christ's throne is established, and they cannot shake it.