Deuteronomy 17 English Standard Version (ESV)
17 “You shall not sacrifice to the Lord your God an ox or a sheep in which is a blemish, any defect whatever, for that is an abomination to the Lord your God.
2 “If there is found among you, within any 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, in transgressing his covenant, 3 and has gone and served other gods and worshiped them, or the sun or the moon or any of the host of heaven, which I have forbidden, 4 and it is told you and you hear of it, then you shall inquire diligently, and if it is true and certain that such an abomination has been done in Israel, 5 then you shall bring out to your gates that man or woman who has done this evil thing, and you shall stone that man or woman to death with stones. 6 On the evidence of two witnesses or of three witnesses the one who is to die shall be put to death; a person shall not be put to death on the evidence of one witness. 7 The hand of the witnesses shall be first against him to put him to death, and afterward the hand of all the people. So you shall purge[a] the evil[b] from your midst.
Legal Decisions by Priests and Judges
8 “If any case arises requiring decision between one kind of homicide and another, one kind of legal right and another, or one kind of assault and another, any case within your towns that is too difficult for you, then you shall arise and go up to the place that the Lord your God will choose. 9 And you shall come to the Levitical priests and to the judge who is in office in those days, and you shall consult them, and they shall declare to you the decision. 10 Then you shall do according to what they declare to you from that place that the Lord will choose. And you shall be careful to do according to all that they direct you. 11 According to the instructions that they give you, and according to the decision which they pronounce to you, you shall do. You shall not turn aside from the verdict that they declare to you, either to the right hand or to the left. 12 The man who acts presumptuously by not obeying the priest who stands to minister there before the Lord your God, or the judge, that man shall die. So you shall purge the evil from Israel. 13 And all the people shall hear and fear and not act presumptuously again.
Laws Concerning Israel's Kings
14 “When you come to the land that the Lord your God is giving you, and you possess it and dwell in it and then say, ‘I will set a king over me, like all the nations that are around me,’ 15 you may indeed set a king over you whom the Lord your God will choose. One from among your brothers you shall set as king over you. You may not put a foreigner over you, who is not your brother. 16 Only he must not acquire many horses for himself or cause the people to return to Egypt in order to acquire many horses, since the Lord has said to you, ‘You shall never return that way again.’ 17 And he shall not acquire many wives for himself, lest his heart turn away, nor shall he acquire for himself excessive silver and gold.
18 “And when he sits on the throne of his kingdom, he shall write for himself in a book a copy of this law, approved by[c] the Levitical priests. 19 And it shall be with him, and he shall read in it all the days of his life, that he may learn to fear the Lord his God by keeping all the words of this law and these statutes, and doing them, 20 that his heart may not be lifted up above his brothers, and that he may not turn aside from the commandment, either to the right hand or to the left, so that he may continue long in his kingdom, he and his children, in Israel.
Deuteronomy 17 New International Version (NIV)
17 Do not sacrifice to the Lord your God an ox or a sheep that has any defect or flaw in it, for that would be detestable to him.
2 If a man or woman living among you in one of the towns the Lord gives you is found doing evil in the eyes of the Lord your God in violation of his covenant, 3 and contrary to my command has worshiped other gods, bowing down to them or to the sun or the moon or the stars in the sky, 4 and this has been brought to your attention, then you must investigate it thoroughly. If it is true and it has been proved that this detestable thing has been done in Israel, 5 take the man or woman who has done this evil deed to your city gate and stone that person to death. 6 On the testimony of two or three witnesses a person is to be put to death, but no one is to be put to death on the testimony of only one witness. 7 The hands of the witnesses must be the first in putting that person to death, and then the hands of all the people. You must purge the evil from among you.
8 If cases come before your courts that are too difficult for you to judge—whether bloodshed, lawsuits or assaults—take them to the place the Lord your God will choose. 9 Go to the Levitical priests and to the judge who is in office at that time. Inquire of them and they will give you the verdict. 10 You must act according to the decisions they give you at the place the Lord will choose. Be careful to do everything they instruct you to do. 11 Act according to whatever they teach you and the decisions they give you. Do not turn aside from what they tell you, to the right or to the left. 12 Anyone who shows contempt for the judge or for the priest who stands ministering there to the Lord your God is to be put to death. You must purge the evil from Israel. 13 All the people will hear and be afraid, and will not be contemptuous again.
14 When you enter the land the Lord your God is giving you and have taken possession of it and settled in it, and you say, “Let us set a king over us like all the nations around us,” 15 be sure to appoint over you a king the Lord your God chooses. He must be from among your fellow Israelites. Do not place a foreigner over you, one who is not an Israelite. 16 The king, moreover, must not acquire great numbers of horses for himself or make the people return to Egypt to get more of them, for the Lord has told you, “You are not to go back that way again.” 17 He must not take many wives, or his heart will be led astray. He must not accumulate large amounts of silver and gold.
18 When he takes the throne of his kingdom, he is to write for himself on a scroll a copy of this law, taken from that of the Levitical priests. 19 It is to be with him, and he is to read it all the days of his life so that he may learn to revere the Lord his God and follow carefully all the words of this law and these decrees 20 and not consider himself better than his fellow Israelites and turn from the law to the right or to the left. Then he and his descendants will reign a long time over his kingdom in Israel.