1 Kings 2:45-46

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.