Deuteronomy 18:19-22 Holman Christian Standard Bible (HCSB)

19. I will hold accountable whoever does not listen to My words that he speaks in My name.

20. But the prophet who dares to speak a message in My name that I have not commanded him to speak, or who speaks in the name of other gods — that prophet must die.’

21. You may say to yourself, ‘How can we recognize a message the Lord has not spoken? ’

22. When 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.

Deuteronomy 18