26 To Abiathar the priest the king said, “Go to Anathoth, to your own fields; for you are worthy of death. But I will not at this time put you to death, because you bore the ark of the Lord Yahweh before David my father, and because you were afflicted in all in which my father was afflicted.” 27 So Solomon thrust out Abiathar from being priest to Yahweh, that he might fulfill the word of Yahweh, which he spoke concerning the house of Eli in Shiloh. 28 The news came to Joab; for Joab had turned after Adonijah, though he didn’t turn after Absalom. Joab fled to the Tent of Yahweh, and caught hold on the horns of the altar. 29 It was told king Solomon, “Joab has fled to the Tent of Yahweh, and behold, he is by the altar.” Then Solomon sent Benaiah the son of Jehoiada, saying, “Go, fall on him.” 30 Benaiah came to the Tent of Yahweh, and said to him, “Thus says the king, ‘Come forth!’”

He said, “No; but I will die here.”

Benaiah brought the king word again, saying, “Thus said Joab, and thus he answered me.” 31 The king said to him, “Do as he has said, and fall on him, and bury him; that you may take away the blood, which Joab shed without cause, from me and from my father’s house. 32 Yahweh will return his blood on his own head, because he fell on two men more righteous and better than he, and killed them with the sword, and my father David didn’t know it: Abner the son of Ner, captain of the army of Israel, and Amasa the son of Jether, captain of the army of Judah. 33 So shall their blood return on the head of Joab, and on the head of his seed forever. But to David, and to his seed, and to his house, and to his throne, there shall be peace forever from Yahweh.” 34 Then Benaiah the son of Jehoiada went up, and fell on him, and killed him; and he was buried in his own house in the wilderness.

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

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.