1 Kings 2:40

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.

1 Kings 2:40 Meaning and Commentary

1 Kings 2:40

And Shimei arose, and saddled his ass, and went to Gath to
Achish to seek his servants
And demand them; through the passion he was in with his servants, and his hurry to get them home, and the covetous disposition which prevailed on him, he might forget, or be tempted to neglect, the prohibition he was under not to go out of Jerusalem; or he might think Solomon had forgot it; or that he could come and go secretly without his knowledge; or if he should know of it, he might hope he would never punish him with death for so small a fault; however, so it was ordered by the providence of God leaving him to his own lust, and the temptations of Satan, that he might suffer just punishment for cursing David:

and Shimei went and brought his servants from Gath;
for the king being at peace with Israel, and a tributary to them also, did not choose to detain them, but delivered them up lest it should be resented, and bring him into trouble.

1 Kings 2:40 In-Context

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.
42 So the king summoned Shimei and said to him, "Didn't I make you swear by the Lord and warn you, saying, 'On the day you leave and go anywhere else, know for sure that you will certainly die'? And you said to me, 'The sentence is fair; I will obey.'
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.