2“If there is found in the midst of you, inside any of your gates that Yahweh your God gives you, a man or woman who does what is evil in the eyes of Yahweh your God by transgressing his covenant,
3and has gone and served other gods and worshiped them, or the sun or the moon or any of the army of heaven that I have not commanded,
4and it is told you, and you have heard of it, then you must inquire diligently; and behold, if it is true and the thing certain, that such abomination is done in Israel,
5then you must bring forth that man or that woman who has done this evil thing to your gates, even the man or the woman, and you must stone them to death with stones.
6At the mouth of two witnesses or three witnesses is he who is to die be put to death; at the mouth of one witness he is not to be put to death.
7The hand of the witnesses are to be first on him to put him to death, and afterward the hand of all the people. So you must put away the evil from the midst of you.
8“If there arises a matter too hard for you in judgment, between blood and blood, between plea and plea and between stroke and stroke, being matters of controversy inside your gates, then you must arise and go up to the place that Yahweh your God will choose;
9and you are to come to the priests the Levites and to the judge who will be in those days, and you are to inquire and they will show you the sentence of judgment.
10You must do according to the tenor of the sentence that they will show you from that place that Yahweh will choose, and you must observe to do according to all that they will teach you;
11according to the tenor of the law that they will teach you and according to the judgment that they will tell you, you must do; do not turn aside from the sentence that they will show you, to the right hand nor to the left.
12The man who does presumptuously in not listening to the priest who stands to minister there before Yahweh your God, or to the judge, even that man must die; and you must put away the evil from Israel.
13All the people will hear and fear and do no more presumptuously.
14“When you have come to the land that Yahweh your God gives you and will possess it and will dwell in it, and will say, ‘I will set a king over me, like all the nations that are around me,’
15you are to surely set him king over yourselves whom Yahweh your God will choose: one from among your brothers you are to set king over you; you may not put a foreigner over you, who is not your brother.
16Only he must not multiply horses to himself, nor cause the people to return to Egypt, to the end that he may multiply horses, because Yahweh has said to you, ‘You are not to go back that way again.’
17Neither must he multiply wives to himself, that his heart not turn away; neither must he greatly multiply to himself silver and gold.
18When he sits on the throne of his kingdom he is to write him a copy of this law in a book out of that which is before the priests the Levites,
19and it is to be with him and he is to read from it all the days of his life, that he may learn to fear Yahweh his God, to keep all the words of this law and these statutes to do them,
20that his heart not be lifted up above his brothers and that he not turn aside from the commandment, to the right hand or to the left; to the end that he may prolong his days in his kingdom, he and his children in the midst of Israel.”