Deuteronomy 13:2-3 NIV

2 and if the sign or wonder spoken of takes place, and the prophet says, “Let us follow other gods” (gods you have not known) “and let us worship them,”

References for Deuteronomy 13:2

3 you must not listen to the words of that prophet or dreamer. The LORD your God is testing you to find out whether you love him with all your heart and with all your soul.

References for Deuteronomy 13:3