1 Kings 2:36-46 - Shimei's Banishment And Execution
36 Then the king sent and called Shimei, and said to him, "Build thee a house in Jerusalem and dwell there and see that thou go not once thence any whither. 37 For be thou sure of it: the day thou goest out and passest over the river of Kidron, thou shalt die for it, and thy blood shall be on thine own head."
38 And Shimei said unto the king, "It is well said: as my lord the king hath said, so will his servant do." And Shimei dwelt in Jerusalem many a day.
39 And it chanced, at the end of three years, that two of the servants of Shimei ran away unto Achish, son of Maacah, king of Gath. And one told Shimei, saying, "See, thy servants be in Gath." 40 And Shimei stood up and saddled his ass and gat him to Gath to Achish, to seek his servants, and came and brought them again from Gath.
41 But it was told Solomon how that Shimei had gone from Jerusalem to Gath and was come again. 42 And the king sent and called Shimei and said unto him, "Did I not adjure thee by the LORD, and testified unto thee saying, 'Be sure whensoever thou goest out and walkest abroad any whither, thou shalt die for it?' And thou answeredst me, 'It is good tidings that I have heard.' 43 Why then hast thou not kept the oath of the LORD, and the commandment that I commanded thee?" 44 And then the king said to Shimei, "Thou rememberest all the wickedness which thine heart knoweth that thou didst to David my father. The LORD therefore render again thy wickedness upon thine own head: 45 and king Solomon be blessed, and the fear of the LORD be established before the LORD forever."
46 And the king commanded Benaiah the son of Jehoiada: which went out and smote him that he died. And so was the kingdom settled in the hand of Solomon.