1 Kings 2:40

40 he saddled his donkey and went to King Achish in Gath, to find his slaves. He found them and brought them back home.

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 "Very well, Your Majesty," Shimei answered. "I will do what you say." So he lived in Jerusalem a long time.
39 Three years later, however, two of Shimei's slaves ran away to the king of Gath, Achish son of Maacah. When Shimei heard that they were in Gath,
40 he saddled his donkey and went to King Achish in Gath, to find his slaves. He found them and brought them back home.
41 When Solomon heard what Shimei had done,
42 he sent for him and said, "I made you promise in the Lord's name not to leave Jerusalem. And I warned you that if you ever did, you would certainly die. Did you not agree to it and say that you would obey me?
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.