1 Kings 2:43-46 English Standard Version (ESV)

43. Why then have you not kept your oath to the Lord and the commandment with which I commanded you?”

44. The king also said to Shimei, “You know in your own heart all the harm that you did to David my father. So the Lord will bring back your harm on your own head.

45. But King Solomon shall be blessed, and the throne of David shall be established before the Lord forever.”

46. Then the king commanded Benaiah the son of Jehoiada, and he went out and struck him down, and he died. So the kingdom was established in the hand of Solomon.

1 Kings 2