Deuteronomy 13:1-6

1If a prophet or aa dreamer of dreams arises among you and gives you a sign or a wonder, 2and bthe 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 cis testing you, to know whether you love the Lord your God with all your heart and with all your soul. 4You shall dwalk after the Lord your God and fear him and keep his commandments and obey his voice, and you shall serve him and ehold fast to him. 5But fthat prophet or that dreamer of dreams shall be put to death, because he has taught rebellion against the Lord your God, who brought you out of the land of Egypt and redeemed you out of the house of slavery, to make you leave the way in which the Lord your God commanded you to walk. gSo you shall purge the evil
Or  evil person
from your midst.

6 iIf your brother, the son of your mother, or your son or your daughter or jthe wife you embrace
Hebrew  the wife of your bosom
or your friend lwho is as your own soul entices you secretly, saying, ‘Let us go and serve other gods,’ mwhich neither you nor your fathers have known,
Copyright information for ESV