Deuteronomy 18:15-22 New International Version
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.