Deuteronomy 18 22
When a prophet speaks in the Lord's name and what he says doesn't happen or come true, then that is a not a message from the Lord. The prophet has spoken with contempt for the Lord. Don't be intimidated by him.
Compare with other 3 random translations
CSB Deuteronomy 18:22When a prophet speaks in the Lord’s name, and the message does not come true or is not fulfilled, that is a message the Lord has not spoken. The prophet has spoken it presumptuously. Do not be afraid of him.
GNV Deuteronomy 18:22When a prophet speaketh in the Name of the Lord, if the thing follow not nor come to passe, that is the thing which the Lord hath not spoken, but the prophet hath spoken it presumptuously: thou shalt not therefore be afraid of him.
NKJ Deuteronomy 18:22when a prophet speaks in the name of the Lord, if the thing does not happen or come to pass, that is the thing which the Lord has not spoken; the prophet has spoken it presumptuously; you shall not be afraid of him.