1 Kings 2:42

Then the king sent and called for Shimei, and said to him, "Did I not make you swear by the LORD, and warn you, saying, "Know for certain that on the day you go out and travel anywhere, you shall surely die'? And you said to me, "The word I have heard is good.'