1 Kings 2:36-46 - Shimei's Banishment And Execution
36 Then the king summoned Shimei
38 Shimei said to the king, “The sentence is fair; your servant will do as my lord the king has spoken.” And Shimei lived in Jerusalem for a long time.
39 But then, at the end of three years, two of Shimei’s slaves ran away to Achish
41 It was reported to Solomon that Shimei had gone from Jerusalem to Gath and had returned. 42 So the king summoned Shimei and said to him, “Didn’t I make you swear by the Lord and warn you, saying, ‘On the day you leave and go anywhere else, know for sure that you will certainly die’? And you said to me, ‘The sentence is fair; I will obey.’ 43 So why have you not kept the Lord’s oath and the command that I gave you?” 44 The king also said, “You yourself know all the evil that you did to my father David.
46 Then the king commanded Benaiah son of Jehoiada, and he went out and struck Shimei down, and he died. So the kingdom was established in Solomon’s hand.