Deuteronomy 13:2-4 Amplified Bible, Classic Edition (AMPC)
2 And the sign or the wonder he foretells to you comes to pass, and if he says, Let us go after other gods—gods 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 is testing you to know whether you love the Lord your God with all your [mind and] heart and with your entire being.
4 You shall walk after the Lord your God and [reverently] fear Him, and keep His commandments and obey His voice, and you shall serve Him and cling to Him.
Deuteronomy 13:2-4 New International Version (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,” 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. 4 It is the Lord your God you must follow, and him you must revere. Keep his commands and obey him; serve him and hold fast to him.