Deuteronomy 13:3

3 you shall not listen to the words of that prophet, or to 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.

Deuteronomy 13:3 In-Context

1 If there arise in the midst of you a prophet, or a dreamer of dreams, and he give 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 to 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 mitzvot, and obey his voice, and you shall serve him, and cleave to him.
5 That prophet, or that dreamer of dreams, shall be put to death, because he has spoken rebellion against the LORD your God, who brought you out of the land of Mitzrayim, and redeemed you out of the house of bondage, to draw you aside out of the way which the LORD your God commanded you to walk in. So shall you put away the evil from the midst of you.
The Hebrew Names Version is in the public domain.