35 Then the king appointed Benaiah son of Jehoiada in Joab’s place over the army, and he appointed Zadok the priest in Abiathar’s place.
36 Then the king summoned Shimei and said to him, “Build a house for yourself in Jerusalem and live there, but don’t leave there and go anywhere else.
37 On the day you do leave and cross the Kidron Valley, know for sure that you will certainly die. Your blood will be on your own head.”
38 Shimei said to the king, “The sentence is fair; your servant will do as my lord the king has spoken.” And Shimei lived in Jerusalem for a long time.
39 But then, at the end of three years, two of Shimei’s slaves ran away to Achish son of Maacah, king of Gath. Shimei was informed, “Look, your slaves are in Gath.”
40 So Shimei saddled his donkey and set out to Achish at Gath to search for his slaves. He went and brought them back from Gath.
41 It was reported to Solomon that Shimei had gone from Jerusalem to Gath and had returned.