I Kings 2:41 Midrash

וַיֻּגַּ֖ד לִשְׁלֹמֹ֑ה כִּי־הָלַ֨ךְ שִׁמְעִ֧י מִירוּשָׁלִַ֛ם גַּ֖ת וַיָּשֹֽׁב׃

And it was told Solomon that Shimei had gone from Jerusalem to Gath, and was come back.

Read midrashic interpretation of I Kings 2:41: and classical rabbinic exegesis.