1If a prophet or a dreamer of dreams arises in your midst and gives you a sign or a wonder, 2and the sign or the wonder comes about, of which he spoke to you, saying, “Let us walk after other gods, which you have not known, and let us serve them,” 3you shall not listen to the words of that prophet or to that dreamer of dreams, for Adonai your Elohim is testing you, to know whether you love Adonai your Elohim with all your heart and with all your soul. 4After Adonai your Elohim you shall walk, and him you shall fear, and his commandments you shall keep, and to his voice you shall listen, and him you shall serve, and to him you shall cling. 5And that prophet, or that dreamer of dreams, shall be put to death, for he spoke rebellion against Adonai your Elohim, who brought you out of the land of Egypt and who redeemed you from the house of slaves, to turn you aside from the way in which Adonai your Elohim commanded you to walk. And you shall burn out the evil from your midst.
6If your brother, the son of your mother, or your son, or your daughter, or the wife of your bosom, or your friend who is like your own soul, entices you in secret, saying, “Let us go and serve other gods,” which you have not known, you or your fathers, 7from the gods of the peoples who are around you, near you or far from you, from one end of the land to the other end of the land, 8you shall not consent to him and shall not listen to him. Your eye shall not pity him, and you shall not spare and you shall not cover over him. 9But you shall surely kill him. Your hand shall be against him first, to put him to death, and the hand of all the people afterward. 10You shall stone him with stones, so that he dies, because he sought to turn you aside from Adonai your Elohim, who brought you out of the land of Egypt, from the house of slaves. 11And all Israel shall hear and fear, and they shall not again do such an evil thing as this in your midst.
12If you hear in one of your cities, which Adonai your Elohim is giving you to live there, saying, 13“Worthless men have gone out from your midst and have turned aside the inhabitants of their city, saying, ‘Let us go and serve other gods,’ which you have not known,” 14then you shall inquire and search and ask well, and look, if it is true, the thing is established, this abomination has been done in your midst, 15you shall surely strike the inhabitants of that city with the edge of the sword, devoting it to destruction and everything in it and its livestock, with the edge of the sword. 16All its spoil you shall gather into the middle of its open square, and you shall burn with fire the city and all its spoil, completely, for Adonai your Elohim, and it shall be a mound forever; it shall not be built again. 17Nothing from the devoted thing shall stick to your hand, so that Adonai may turn from the burning of his anger and give you mercy and have mercy on you and multiply you, just as he swore to your fathers, 18if you listen to the voice of Adonai your Elohim, to keep all his commandments that I command you today, to do what is right in the eyes of Adonai your Elohim.