Deuteronomy 13:1-5

1 If there arise among you a prophet, or a dreamer of dreams, and gives you a sign or a wonder,

2 And the sign or the wonder come to pass, whereof he spoke to you, saying, Let us go after other gods, which you have not known, and let us serve them;

3 You shall not listen to the words of that prophet, or that dreamer of dreams: for the LORD your God proves you, to know whether you love the LORD your God with all your heart and with all your soul.

4 You shall walk after the LORD your God, and fear him, and keep his commandments, and obey his voice, and you shall serve him, and join to him.

5 And that prophet, or that dreamer of dreams, shall be put to death; because he has 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 you out of the way which the LORD your God commanded you to walk in. So shall you put the evil away from the middle of you.