1 Kings 2:45-46 New English Translation (NET)

45. But King Solomon will be empowered and David’s dynasty will endure permanently before the Lord.”

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.

1 Kings 2