Deuteronomy 18:17-22 NIV

17 The LORD said to me: "What they say is good.
18 I will raise up for them a prophet1 like you from among their brothers; I will put my words2 in his mouth,3 and he will tell them everything I command him.4

References for Deuteronomy 18:18

19 If anyone does not listen5 to my words that the prophet speaks in my name,6 I myself will call him to account.7

References for Deuteronomy 18:19

20 But a prophet who presumes to speak in my name anything I have not commanded him to say, or a prophet who speaks in the name of other gods,8 must be put to death."9

References for Deuteronomy 18:20

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,10 that is a message the LORD has not spoken.11 That prophet has spoken presumptuously.12 Do not be afraid of him.

References for Deuteronomy 18:22