You must not sacrifice to the Lord your God an ox or a sheep that has a defect, anything seriously wrong; for that is abhorrent to the Lord your God.
If there is found among you, in one of your towns that the Lord your God is giving you, a man or woman who does what is evil in the sight of the Lord your God, and transgresses his covenant
by going to serve other gods and worshiping them—whether the sun or the moon or any of the host of heaven, which I have forbidden—
and if it is reported to you or you hear of it, and you make a thorough inquiry, and the charge is proved true that such an abhorrent thing has occurred in Israel,
then you shall bring out to your gates that man or that woman who has committed this crime and you shall stone the man or woman to death.
On the evidence of two or three witnesses the death sentence shall be executed; a person must not be put to death on the evidence of only one witness.
The hands of the witnesses shall be the first raised against the person to execute the death penalty, and afterward the hands of all the people. So you shall purge the evil from your midst.
If a judicial decision is too difficult for you to make between one kind of bloodshed and another, one kind of legal right and another, or one kind of assault and another—any such matters of dispute in your towns—then you shall immediately go up to the place that the Lord your God will choose,
where you shall consult with the levitical priests and the judge who is in office in those days; they shall announce to you the decision in the case.
Carry out exactly the decision that they announce to you from the place that the Lord will choose, diligently observing everything they instruct you.
You must carry out fully the law that they interpret for you or the ruling that they announce to you; do not turn aside from the decision that they announce to you, either to the right or to the left.
As for anyone who presumes to disobey the priest appointed to minister there to the Lord your God, or the judge, that person shall die. So you shall purge the evil from Israel.
All the people will hear and be afraid, and will not act presumptuously again.
When you have come into the land that the Lord your God is giving you, and have taken possession of it and settled in it, and you say, "I will set a king over me, like all the nations that are around me,"
you may indeed set over you a king whom the Lord your God will choose. One of your own community you may set as king over you; you are not permitted to put a foreigner over you, who is not of your own community.
Even so, he must not acquire many horses for himself, or return the people to Egypt in order to acquire more horses, since the Lord has said to you, "You must never return that way again."
And he must not acquire many wives for himself, or else his heart will turn away; also silver and gold he must not acquire in great quantity for himself.
When he has taken the throne of his kingdom, he shall have a copy of this law written for him in the presence of the levitical priests.
It shall remain with him and he shall read in it all the days of his life, so that he may learn to fear the Lord his God, diligently observing all the words of this law and these statutes,
neither exalting himself above other members of the community nor turning aside from the commandment, either to the right or to the left, so that he and his descendants may reign long over his kingdom in Israel.
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved. (New Revised Standard Bible Version Online)