Deuteronomy 18:20

New American Standard Bible (NASB)
But the prophet who speaks a word presumptuously in My name which I have not commanded him to speak, or which he speaks in the name of other gods, [m]that prophet shall die.’

Read Deuteronomy 18:20 in other translations