The LORD said to me: “What they say is good.
I will raise up for them a prophet like you from among their fellow Israelites, and I will put my words in his mouth. He will tell them everything I command him.
References for Deuteronomy 18:18
I myself will call to account anyone who does not listen to my words that the prophet speaks in my name.
References for Deuteronomy 18:19
But a prophet who presumes to speak in my name anything I have not commanded, or a prophet who speaks in the name of other gods, is to be put to death.”
References for Deuteronomy 18:20
You may say to yourselves, “How can we know when a message has not been spoken by the LORD?”
If what a prophet proclaims in the name of the LORD does not take place or come true, that is a message the LORD has not spoken. That prophet has spoken presumptuously, so do not be alarmed.
References for Deuteronomy 18:22