Deuteronomy 18:20

But if any prophet dares to speak a message in My name that I have not commanded him to speak, or to speak in the name of other gods, that prophet must be put to death.”
BSB · Berean Standard Bible
But the prophet, which shall presume to speak a word in my name, which I have not commanded him to speak, or that shall speak in the name of other gods, even that prophet shall die.
KJV · King James Version
But the prophet who speaks a word presumptuously in my name, which I have not commanded him to speak, or who speaks in the name of other gods, that same prophet shall die.”
WEB · World English Bible
But the prophet, that shall speak a word presumptuously in my name, which I have not commanded him to speak, or that shall speak in the name of other gods, that same prophet shall die.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

the prophet
Deuteronomy 13:1–5; Jeremiah 14:14, 15; Jeremiah 23:13–15, 31; Jeremiah 27:15; Ezekiel 13:6; Matthew 7:15; 2 Peter 2:12
in the name
Deuteronomy 13:1, 2; 1 Kings 18:19, 27, 40; Jeremiah 2:8; Jeremiah 28:15–17; Zechariah 13:3; Revelation 19:20