1 Kings 2:33

2:33 May Joab and his descendants be perpetually guilty of their shed blood, but may the Lord give perpetual peace to David, his descendants, his family, and his dynasty.”

1 Kings 2:46

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.