36Then the king summoned Shimei and said to him, “Build a house for yourself in Jerusalem and live there, but do not go anywhere else.
37On the day you go out and cross the Kidron Valley, know for sure that you will die; your blood will be on your own head.”
38“The sentence is fair,” Shimei replied. “Your servant will do as my lord the king has spoken.” And Shimei lived in Jerusalem for a long time.
— 1 Kings 2:36-38