If what a prophet proclaims in the name of Yahweh does not take place or come true, that is a word Yahweh has not spoken. That prophet has spoken presumptuously; do not be afraid of him.
In context
20But any prophet who presumes to speak in my name a word I have not commanded him to speak, or who speaks in the name of other gods, that prophet is to die.” 21You may say to yourself, “How can we know when a word has not been spoken by Yahweh?” 22If what a prophet proclaims in the name of Yahweh does not take place or come true, that is a word Yahweh has not spoken. That prophet has spoken presumptuously; do not be afraid of him.