So Benaiah son of Jehoiada went up and struck him down and killed him, and he was buried at his own house in the wilderness.
In context
32Yahweh will bring his blood back on his own head, because he struck down two men more righteous and better than himself, and killed them with the sword without my father David knowing it — Abner son of Ner, commander of Israel’s army, and Amasa son of Jether, commander of Judah’s army. 33May their blood come back on the head of Joab and on the head of his descendants forever, but for David, his descendants, his house, and his throne, may there be peace from Yahweh forever.” 34So Benaiah son of Jehoiada went up and struck him down and killed him, and he was buried at his own house in the wilderness. 35The king put Benaiah son of Jehoiada over the army in his place, and he put Zadok the priest in the place of Abiathar. 36Then the king sent for Shimei and said to him, “Build yourself a house in Jerusalem and live there, and do not go anywhere else.