"If there is found among you, within any of your gates which the Lord your God gives you, a man or a woman who has been wicked in the sight of the Lord your God, in transgressing His covenant,
who has gone and served other gods and worshiped them, either the sun or moon or any of the host of heaven, which I have not commanded,
and it is told you, and you hear of it, then you shall inquire diligently. And if it is indeed true and certain that such an abomination has been committed in Israel,
then you shall bring out to your gates that man or woman who has committed that wicked thing, and shall stone to death that man or woman with stones.
Whoever is deserving of death shall be put to death on the testimony of two or three witnesses; he shall not be put to death on the testimony of one witness.
The hands of the witnesses shall be the first against him to put him to death, and afterward the hands of all the people. So you shall put away the evil from among you.
"If a matter arises which is too hard for you to judge, between degrees of guilt for bloodshed, between one judgment or another, or between one punishment or another, matters of controversy within your gates, then you shall arise and go up to the place which the Lord your God chooses.
And you shall come to the priests, the Levites, and to the judge there in those days, and inquire of them; they shall pronounce upon you the sentence of judgment.
You shall do according to the sentence which they pronounce upon you in that place which the Lord chooses. And you shall be careful to do according to all that they order you.
According to the sentence of the law in which they instruct you, according to the judgment which they tell you, you shall do; you shall not turn aside to the right hand or to the left from the sentence which they pronounce upon you.
Now the man who acts presumptuously and will not heed the priest who stands to minister there before the Lord your God, or the judge, that man shall die. So you shall put away the evil from Israel.