כִּֽי־יָק֤וּם בְּקִרְבְּךָ֙ נָבִ֔יא א֖וֹ חֹלֵ֣ם חֲל֑וֹם וְנָתַ֥ן אֵלֶ֛יךָ א֖וֹת א֥וֹ מוֹפֵֽת׃
S’il s’élève au milieu de toi un prophète ou un visionnaire, t’offrant pour caution un signe ou un miracle;
Mishneh Torah, Foundations of the Torah
All these matters were said only concerning the rest of the commandments, but concerning idolatry he must not be listened to, even it be temporary, and even if he delivered great tokens and performed great miracles and said that God commanded him that idolatry should be worshipped this day only, or this hour only; for, lo, this one spoke perversion against God, and concerning such one Holy Writ commanded, saying: "And the sign and the wonder come to pass…Thou shalt not hearken unto the words of that prophet…Because he hath spoken perversion against the Lord your God" (Ibid. 13. 2.4.6); and, lo, he came to refute the prophecy of Moses, we therefore know of a certainty that he is a false prophet, and all that which he did was done by enchantment and witchcraft, and he shall be strangled.