Deuteronomy 17 AMP
1. “You shall not sacrifice to the Lord your God an ox or sheep with a blemish or any defect, for that is a detestable thing to the Lord your God.
2. “If there is discovered among you, within any of your cities, which the Lord your God is giving you, a man or a woman who does evil in the sight of the Lord your God, by transgressing (violating) His covenant,
3. and has gone and served other gods and worshiped them, or the sun or the moon or any of the heavenly host, [doing these things] which I have commanded not to do,
4. and if it is told to you and you hear about it, then you shall investigate thoroughly [all the charges]. If it is confirmed beyond doubt that this detestable thing has been done in Israel,
5. then you shall bring that man or that woman who has done this evil thing to the gates [of your city] and you shall stone the man or the woman to death.
6. On the evidence of two or three witnesses, he who is to die shall be put to death; he shall not be put to death on the evidence of [only] one witness.
7. The hand of the witnesses shall be the first against him to put him to death, and afterward the hand of all the people. So you shall remove the evil from among you.
8. “If any case is too difficult for you to judge—between one kind of homicide and another, between one kind of lawsuit and another, between one kind of assault and another, being controversial issues in your courts—then you shall arise and go to the place which the Lord your God chooses.
9. So you shall come to the Levitical priests or to the judge who is in office at that time, and you shall consult them and they will declare to you the verdict in the case.
10. You shall act in accordance with the terms of the verdict which they declare to you from that place which the Lord chooses. You shall be careful to act in accordance with all of their instructions.
11. You shall act in accordance with the law which they teach you and the judgment which they tell you. You shall not turn aside from their verdict, to the right or to the left.
12. The man who acts presumptuously and insolently by not listening to the priest who stands there to serve the Lord your God, nor to the judge, that man shall die; so you shall remove the evil from Israel.
13. Then all the people will hear and be afraid, and will not act presumptuously again.
14. “When you enter the land which the Lord your God is giving you, and you take possession of it and live there, and you say, ‘I will set a king over me like all the nations who are around me,’
15. you shall most certainly set a king over you whom the Lord your God chooses. You shall set a king over you from among your countrymen (brothers); you may not choose a foreigner [to rule] over you who is not your countryman.
16. Further, he shall not acquire many [war] horses for himself, nor make the people return to Egypt in order to acquire horses [to expand his military power], since the Lord said to you, ‘You shall never return that way again.’
17. He shall not acquire multiple wives for himself, or else his heart will turn away [from God]; nor [for the same reason] shall he acquire great amounts of silver and gold.
18. “Now it shall come about when he sits on the throne of his kingdom, he shall write for himself a copy of this law on a scroll in the presence of the Levitical priests.
19. And it shall be with him and he shall read it all the days of his life, so that he may learn to fear [and worship] the Lord his God [with awe-filled reverence and profound respect], by carefully obeying (keeping foremost in his thoughts and actively doing) all the words of this law and these statutes,
20. so that his heart will not be lifted up above his countrymen [by a false sense of self-importance and self-reliance] and that he will not turn away (deviate) from the commandment, to the right or to the left, so that he and his sons may continue [to reign] for a long time in his kingdom in Israel.