וַיִּשְׁלַ֤ח הַמֶּ֙לֶךְ֙ וַיִּקְרָ֣א לְשִׁמְעִ֔י וַיֹּ֣אמֶר ל֗וֹ בְּֽנֵה־לְךָ֥ בַ֙יִת֙ בִּיר֣וּשָׁלִַ֔ם וְיָשַׁבְתָּ֖ שָׁ֑ם וְלֹֽא־תֵצֵ֥א מִשָּׁ֖ם אָ֥נֶה וָאָֽנָה׃
And the king sent and called for Shimei, and said unto him: Build thee a house in Jerusalem, and dwell there, and go not forth thence any whither.
Read halakhic rulings (Jewish law) on I Kings 2:36: and classical halakhic sources.