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

36 And the king sent and called for Shimei, and said unto him, Build you a house in Jerusalem, and dwell there, and go not forth from there anywhere. 37 For it shall be, that on the day you go out, and pass over the brook Kidron, you shall know for certain that you shall surely die: your blood shall be upon your own head.

38 And Shimei said unto the king, The saying is good: as my lord the king has said, so will your servant do. And Shimei dwelt in Jerusalem many days.

39 And it came to pass at the end of three years, that two of the servants of Shimei ran away unto Achish son of Maachah king of Gath. And they told Shimei, saying, Behold, your servants are in Gath. 40 And Shimei arose, and saddled his donkey, and went to Gath to Achish to seek his servants: and Shimei went, and brought his servants from Gath.

41 And it was told Solomon that Shimei had gone from Jerusalem to Gath, and had come again. 42 And the king sent and called for Shimei, and said unto him, Did I not make you to swear by the LORD, and admonished you, saying, Know for a certain, on the day you go out, and travel anywhere, that you shall surely die? and you said unto me, The word that I have heard is good. 43 Why then have you not kept the oath of the LORD, and the commandment that I have charged you with? 44 The king said moreover to Shimei, You know all the wickedness which was in your heart, that you did to David my father: therefore the LORD shall return your wickedness upon your own head; 45 And 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; who went out, and struck him, so that he died. And the kingdom was established in the hand of Solomon.