17 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.
2 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 3 by going to serve other gods and worshipping them—whether the sun or the moon or any of the host of heaven, which I have forbidden— 4 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, 5 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. 6 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. 7 The hands of the witnesses shall be the first raised against the person to execute the death penalty, and afterwards the hands of all the people. So you shall purge the evil from your midst.
Legal Decisions by Priests and Judges
8 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, 9 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. 10 Carry out exactly the decision that they announce to you from the place that the Lord will choose, diligently observing everything they instruct you. 11 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. 12 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. 13 All the people will hear and be afraid, and will not act presumptuously again.
Limitations of Royal Authority
14 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’, 15 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. 16 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.’ 17 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. 18 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. 19 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, 20 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.