1 Kings 2:36-38

2:36 Next the king summoned Shimei and told him, “Build yourself a house in Jerusalem and live there – but you may not leave there to go anywhere! 2:37 If you ever do leave and cross the Kidron Valley, know for sure that you will certainly die! You will be responsible for your own death.” 2:38 Shimei said to the king, “My master the king’s proposal is acceptable. Your servant will do as you say.” So Shimei lived in Jerusalem for a long time.