Deuteronomy 18:20-22New American Standard Bible (NASB)
20 But the prophet who speaks a word presumptuously in My name which I have not commanded him to speak, or which he speaks in the name of other gods, [a]that prophet shall die.’ 21 [b]You may say in your heart, ‘How will we know the word which the Lord has not spoken?’ 22 When a prophet speaks in the name of the Lord, if the thing does not come about or come true, that is the thing which the Lord has not spoken. The prophet has spoken it presumptuously; you shall not be afraid of him.