35 The king put Benaiah the son of Jehoiada over the army in place of Joab and put Zadok the priest in the place of Abiathar.
36 The king sent and called for Shimei and said to him, “Build a house for yourself in Jerusalem, and dwell there, and never leave the city.
37 For on the day you go out and pass over the Kidron Valley, know for certain that you will surely die. Your blood shall be on your own head.”
38 Shimei said to the king, “What you say is good. As my lord the king has said, so will your servant do.” And Shimei lived in Jerusalem many days.
39 It came about that at the end of three years, two servants of Shimei ran away to Achish son of Maakah king of Gath. And they told Shimei, saying, “Your servants are in Gath.”
40 Shimei arose, saddled his donkey, and went to Gath to Achish to look for his servants. And Shimei went and brought his servants from Gath.
41 Solomon was told that Shimei had gone from Jerusalem to Gath and had returned.