Deuteronomy 13:2-3

2and athe sign or wonder that he tells you comes to pass, and if he says, ‘Let us go after other gods,’ which you have not known, ‘and let us serve them,’ 3you shall not listen to the words of that prophet or that dreamer of dreams. For the Lord your God bis testing you, to know whether you love the Lord your God with all your heart and with all your soul.
Copyright information for ESV