2:8 “Note well, you still have to contend with Shimei son of Gera, the Benjaminite from Bahurim, who tried to call down upon me a horrible judgment when I went to Mahanaim. He came down and met me at the Jordan, and I solemnly promised him by the Lord, ‘I will not strike you down with the sword.’ 2:9 But now don’t treat him as if he were innocent. You are a wise man and you know how to handle him; make sure he has a bloody death.”
2:36 Next the king summoned Shimei and told him, “Build yourself a house in Jerusalem and live there – but you may not leave there to go anywhere! 2:37 If you ever do leave and cross the Kidron Valley, know for sure that you will certainly die! You will be responsible for your own death.” 2:38 Shimei said to the king, “My master the king’s proposal is acceptable. Your servant will do as you say.” So Shimei lived in Jerusalem for a long time.
2:39 Three years later two of Shimei’s servants ran away to King Achish son of Maacah of Gath. Shimei was told, “Look, your servants are in Gath.” 2:40 So Shimei got up, saddled his donkey, and went to Achish at Gath to find his servants; Shimei went and brought back his servants from Gath. 2:41 When Solomon was told that Shimei had gone from Jerusalem to Gath and had then returned, 2:42 the king summoned Shimei and said to him, “You will recall that I made you take an oath by the Lord, and I solemnly warned you, ‘If you ever leave and go anywhere, know for sure that you will certainly die.’ You said to me, ‘The proposal is acceptable; I agree to it.’ 2:43 Why then have you broken the oath you made before the Lord and disobeyed the order I gave you?” 2:44 Then the king said to Shimei, “You are well aware of the way you mistreated my father David. The Lord will punish you for what you did. 2:45 But King Solomon will be empowered and David’s dynasty will endure permanently before the Lord.” 2:46 The king then gave the order to Benaiah son of Jehoiada who went and executed Shimei.
So Solomon took firm control of the kingdom.