26 To Abiathar the priest the king said, "Go back to your fields in Anathoth. You deserve to die, but I will not put you to death now, because you carried the ark of the Sovereign Lord before my father David and shared all my father's hardships." 27 So Solomon removed Abiathar from the priesthood of the Lord, fulfilling the word the Lord had spoken at Shiloh about the house of Eli. 28 When the news reached Joab, who had conspired with Adonijah though not with Absalom, he fled to the tent of the Lord and took hold of the horns of the altar. 29 King Solomon was told that Joab had fled to the tent of the Lord and was beside the altar. Then Solomon ordered Benaiah son of Jehoiada, "Go, strike him down!" 30 So Benaiah entered the tent of the Lord and said to Joab, "The king says, 'Come out!' " But he answered, "No, I will die here." Benaiah reported to the king, "This is how Joab answered me." 31 Then the king commanded Benaiah, "Do as he says. Strike him down and bury him, and so clear me and my whole family of the guilt of the innocent blood that Joab shed. 32 The Lord will repay him for the blood he shed, because without my father David knowing it he attacked two men and killed them with the sword. Both of them-Abner son of Ner, commander of Israel's army, and Amasa son of Jether, commander of Judah's army-were better men and more upright than he. 33 May the guilt of their blood rest on the head of Joab and his descendants forever. But on David and his descendants, his house and his throne, may there be the Lord's peace forever." 34 So Benaiah son of Jehoiada went up and struck down Joab and killed him, and he was buried at his home out in the country.

35 The king put Benaiah son of Jehoiada over the army in Joab's position and replaced Abiathar with Zadok the priest. 36 Then the king sent for Shimei and said to him, "Build yourself a house in Jerusalem and live there, but do not go anywhere else. 37 The day you leave and cross the Kidron Valley, you can be sure you will die; your blood will be on your own head." 38 Shimei answered the king, "What you say is good. Your servant will do as my lord the king has said." And Shimei stayed in Jerusalem for a long time. 39 But three years later, two of Shimei's slaves ran off to Achish son of Maakah, king of Gath, and Shimei was told, "Your slaves are in Gath." 40 At this, he saddled his donkey and went to Achish at Gath in search of his slaves. So Shimei went away and brought the slaves back from Gath. 41 When Solomon was told that Shimei had gone from Jerusalem to Gath and had returned, 42 the king summoned Shimei and said to him, "Did I not make you swear by the Lord and warn you, 'On the day you leave to go anywhere else, you can be sure you will die'? At that time you said to me, 'What you say is good. I will obey.' 43 Why then did you not keep your oath to the Lord and obey the command I gave you?" 44 The king also said to Shimei, "You know in your heart all the wrong you did to my father David. Now the Lord will repay you for your wrongdoing. 45 But King Solomon will be blessed, and David's throne will remain secure before the Lord forever." 46 Then the king gave the order to Benaiah son of Jehoiada, and he went out and struck Shimei down and he died. The kingdom was now established in Solomon's hands.

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.