1 Kings 2:26-36

26 And to Abi'athar the priest the king said, "Go to An'athoth, to your estate; for you deserve death. But I will not at this time put you to death, because you bore the ark of the Lord GOD before David my father, and because you shared in all the affliction of my father."
27 So Solomon expelled Abi'athar from being priest to the LORD, thus fulfilling the word of the LORD which he had spoken concerning the house of Eli in Shiloh.
28 When the news came to Jo'ab--for Jo'ab had supported Adoni'jah although he had not supported Ab'salom--Jo'ab fled to the tent of the LORD and caught hold of the horns of the altar.
29 And when it was told King Solomon, "Jo'ab has fled to the tent of the LORD, and behold, he is beside the altar," Solomon sent Benai'ah the son of Jehoi'ada, saying, "Go, strike him down."
30 So Benai'ah came to the tent of the LORD, and said to him, "The king commands, 'Come forth.'" But he said, "No, I will die here." Then Benai'ah brought the king word again, saying, "Thus said Jo'ab, and thus he answered me."
31 The king replied to him, "Do as he has said, strike him down and bury him; and thus take away from me and from my father's house the guilt for the blood which Jo'ab shed without cause.
32 The LORD will bring back his bloody deeds upon his own head, because, without the knowledge of my father David, he attacked and slew with the sword two men more righteous and better than himself, Abner the son of Ner, commander of the army of Israel, and Ama'sa the son of Jether, commander of the army of Judah.
33 So shall their blood come back upon the head of Jo'ab and upon the head of his descendants for ever; but to David, and to his descendants, and to his house, and to his throne, there shall be peace from the LORD for evermore."
34 Then Benai'ah the son of Jehoi'ada went up, and struck him down and killed him; and he was buried in his own house in the wilderness.
35 The king put Benai'ah the son of Jehoi'ada over the army in place of Jo'ab, and the king put Zadok the priest in the place of Abi'athar.
36 Then the king sent and summoned Shim'e-i, and said to him, "Build yourself a house in Jerusalem, and dwell there, and do not go forth from there to any place whatever.