If there arise among you a prophet, or a dreamer of dreams, and giveth thee a sign or a wonder, and the sign or the wonder come to pass, whereof he spake unto thee, saying, “Let us go after other gods, which thou hast not known, and let us serve them;” thou shalt not hearken unto the words of that prophet, or that dreamer of dreams: for the LORD your God proveth you, to know whether ye love the LORD your God with all your heart and with all your soul.
Ye shall walk after the LORD your God, and fear Him, and keep His commandments, and obey His voice, and ye shall serve Him, and cleave unto Him.
And that prophet, or that dreamer of dreams, shall be put to death; because he hath spoken to turn you away from the LORD your God, which brought you out of the land of Egypt, and redeemed you out of the house of bondage, to thrust thee out of the way which the LORD thy God commanded thee to walk in. So shalt thou put the evil away from the midst of thee. Deuteronomy 13:1-5
References: Deuteronomy 13:6-18; 1 Kings 13; Jeremiah 23:25-28; Zechariah 10:2; Matthew 7:15; 24:11; Luke 6:26; 2 Peter 2; 1 John 4:1