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
So Solomon took firm control of the kingdom.