1 Kings 2:23-33

23 Then King Solomon swore by the LORD, saying, "God do so to me and more also if this word does not cost Adoni'jah his life!
24 Now therefore as the LORD lives, who has established me, and placed me on the throne of David my father, and who has made me a house, as he promised, Adoni'jah shall be put to death this day."
25 So King Solomon sent Benai'ah the son of Jehoi'ada; and he struck him down, and he died.
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."