DeuteronomyChapter 13

If a prophet or a dreamer of dreams arises among you and gives you a sign or a wonder,
and the sign or wonder he spoke of comes to pass, and he says, "Let us follow other gods"—gods you have not known—"and let us serve them,"
do not listen to the words of that prophet or that dreamer of dreams. For the LORD your God is testing you, to know whether you love the LORD your God with all your heart and with all your soul.
You shall follow the LORD your God and fear him. Keep his commandments, obey his voice, serve him, and hold fast to him.
But that prophet or dreamer of dreams shall be put to death, for he has spoken rebellion against the LORD your God, who brought you out of the land of Egypt and redeemed you from the house of slavery, seeking to turn you aside from the way the LORD your God commanded you to walk. So purge the evil from your midst.
If your brother, your own mother's son, or your son or your daughter, or the wife you hold close, or the friend who is like your own soul secretly entices you, saying, "Let us go and serve other gods"—gods that neither you nor your fathers have known,
Stone him to death, because he sought to draw you away from the LORD your God, who brought you out of the land of Egypt, out of the house of slavery.
worthless men have gone out from among you and led the inhabitants of their city astray, saying, "Let us go and serve other gods"—gods you have not known—
then you shall inquire, investigate, and question thoroughly. And if it is true and confirmed that this abomination has been committed among you,
you shall surely strike down the inhabitants of that city with the sword. Devote it to destruction—the city, everyone in it, and its livestock—by the sword.
Gather all its plunder into the middle of its square and burn the city and all its plunder with fire, a whole offering to the LORD your God. It shall be a heap of ruins forever, never to be rebuilt.
Let nothing devoted to destruction cling to your hand, so that the LORD may turn from his burning anger and show you mercy, have compassion on you and multiply you, as he swore to your fathers—
when you obey the voice of the LORD your God, keeping all his commandments that I am giving you today, and doing what is right in the eyes of the LORD your God.