1 Kings 2:36-46 - Shimei's Banishment And Execution

36 Now the king sent word and called for Shimei and said to him, “Build yourself a house in Jerusalem and live there. Do not go from there to any other place. 37 For on the day you leave and cross over the Brook Kidron, know for certain that you shall surely die; your blood shall be on your own head.”

38 Shimei said to the king, “The word (ruling) is good. As my lord the king has said, so will your servant do.” So Shimei lived in Jerusalem for many days.

39 But it happened after three years, that two of Shimei’s servants ran away to Achish the son of Maacah, the king of Gath. And Shimei was told, “Behold, your [runaway] servants are in Gath.” 40 So Shimei arose, saddled his donkey, and went to Gath to [King] Achish to look for his servants. And Shimei went and brought them back from Gath.

41 Now Solomon was told that Shimei had gone from Jerusalem to Gath, and had returned. 42 So the king sent word and called for Shimei and said to him, “Did I not make you swear by the Lord and solemnly warn you, saying, ‘Know for certain that on the day you leave [Jerusalem] and go anywhere, you shall surely die’? And you said to me, ‘The word (ruling) I have heard is good.’ 43 Why then have you not kept the oath of the Lord, and the command which I gave you?” 44 The king also said to Shimei, “You are aware in your own heart of all the evil you did to my father David; so the Lord shall return your evil on your own head. 45 But King Solomon shall be blessed, and the throne of David shall be established before the Lord forever.”

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