When you enter the land the LORD your God is giving you, do not learn to imitate the detestable ways of the nations there.
Let no one be found among you who sacrifices their son or daughter in the fire, who practices divination or sorcery, interprets omens, engages in witchcraft,
or casts spells, or who is a medium or spiritist or who consults the dead.
Anyone who does these things is detestable to the LORD; because of these same detestable practices the LORD your God will drive out those nations before you.
You must be blameless before the LORD your God.
The nations you will dispossess listen to those who practice sorcery or divination. But as for you, the LORD your God has not permitted you to do so.
The LORD your God will raise up for you a prophet like me from among you, from your fellow Israelites. You must listen to him.
For this is what you asked of the LORD your God at Horeb on the day of the assembly when you said, “Let us not hear the voice of the LORD our God nor see this great fire anymore, or we will die.”
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.
I myself will call to account anyone who does not listen to my words that the prophet speaks in my name.
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.”
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.