Deuteronomy 18:9-22 New American Bible (Revised Edition) (NABRE)
Prophets. 9 When you come into the land which the Lord, your God, is giving you, you shall not learn to imitate the abominations of the nations there. 10 Let there not be found among you anyone who causes their son or daughter to pass through the fire,[a] or practices divination, or is a soothsayer, augur, or sorcerer, 11 or who casts spells, consults ghosts and spirits, or seeks oracles from the dead. 12 Anyone who does such things is an abomination to the Lord, and because of such abominations the Lord, your God, is dispossessing them before you. 13 You must be altogether sincere with the Lord, your God. 14 Although these nations whom you are about to dispossess listen to their soothsayers and diviners, the Lord, your God, will not permit you to do so.
15 A prophet like me[b] will the Lord, your God, raise up for you from among your own kindred; that is the one to whom you shall listen. 16 This is exactly what you requested of the Lord, your God, at Horeb on the day of the assembly, when you said, “Let me not again hear the voice of the Lord, my God, nor see this great fire any more, or I will die.” 17 And the Lord said to me, What they have said is good. 18 I will raise up for them a prophet like you from among their kindred, and will put my words into the mouth of the prophet; the prophet shall tell them all that I command. 19 Anyone who will not listen to my words which the prophet speaks in my name, I myself will hold accountable for it. 20 But if a prophet presumes to speak a word in my name that I have not commanded, or speaks in the name of other gods, that prophet shall die.
21 Should you say to yourselves, “How can we recognize that a word is one the Lord has not spoken?”, 22 if a prophet speaks in the name of the Lord but the word does not come true, it is a word the Lord did not speak. The prophet has spoken it presumptuously; do not fear him.
Deuteronomy 18:9-22 New International Version (NIV)
9 When you enter the land the Lord your God is giving you, do not learn to imitate the detestable ways of the nations there. 10 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, 11 or casts spells, or who is a medium or spiritist or who consults the dead. 12 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. 13 You must be blameless before the Lord your God.
14 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. 15 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. 16 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.”
17 The Lord said to me: “What they say is good. 18 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. 19 I myself will call to account anyone who does not listen to my words that the prophet speaks in my name. 20 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.”
21 You may say to yourselves, “How can we know when a message has not been spoken by the Lord?” 22 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.