1 Kings 2:42

Amplified Bible (AMP)
So the king sent word and called for Shimei and said to him, “Did I not make you swear by the Lord and solemnly warn you, saying, ‘Know for certain that on the day you leave [Jerusalem] and go anywhere, you shall surely die’? And you said to me, ‘The word (ruling) I have heard is good.’

Read 1 Kings 2:42 in other translations