If a prophet, or one who foretells by dreams, appears among you and announces to you a sign or wonder, 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,” 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. 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. That prophet or dreamer must be put to death for inciting rebellion against the LORD your God, who brought you out of Egypt and redeemed you from the land of slavery. That prophet or dreamer tried to turn you from the way the LORD your God commanded you to follow. You must purge the evil from among you.
If your very own brother, or your son or daughter, or the wife you love, or your closest friend secretly entices you, saying, “Let us go and worship other gods” (gods that neither you nor your ancestors have known, gods of the peoples around you, whether near or far, from one end of the land to the other), do not yield to them or listen to them. Show them no pity. Do not spare them or shield them. You must certainly put them to death. Your hand must be the first in putting them to death, and then the hands of all the people. Stone them to death, because they tried to turn you away from the LORD your God, who brought you out of Egypt, out of the land of slavery. Then all Israel will hear and be afraid, and no one among you will do such an evil thing again.
If you hear it said about one of the towns the LORD your God is giving you to live in that troublemakers have arisen among you and have led the people of their town astray, saying, “Let us go and worship other gods” (gods you have not known), then you must inquire, probe and investigate it thoroughly. And if it is true and it has been proved that this detestable thing has been done among you, you must certainly put to the sword all who live in that town. You must destroy it completely, both its people and its livestock.