If someone, whether male or female, is found in your community—in one of the cities the LORD your God is giving you—who does evil in the LORD your God's eyes, by breaking God's covenant,
by following and serving other gods, and by bowing down to them, to the sun or the moon or any of the heavenly bodies that I haven't permitted—
and you hear news about it, then you must look into this situation very carefully. And if it's definitely true that this detestable thing was done in Israel,
then you must bring out the man or woman who has done this evil thing to the gates of the city. Stone that person until he or she is dead.
Capital punishment must be decided by two or three witnesses. No one may be executed on the basis of only one testimony.
In the execution, the hands of the witnesses must be against the guilty person from the start; the hand of all the people will be involved at the end. Removea such evil from your community!
If some legal dispute in your cities is too difficult for you to decide—say, between different kinds of bloodshed, different kinds of legal ruling, or different kinds of injury—then take it to the location the LORD your God selects.
Go to the levitical priests and to the head judge in office at that time and look into things there. They will announce to you the correct ruling.
You must then act according to the ruling they announced to you from that location, the one the LORD selects. You must follow very carefully everything they instruct you to do.
Act precisely according to the instruction they give you and the ruling they announce to you. Don't deviate even a bit from the word they announce.
And whoever acts rashly by not listening to the priest who is in office serving the LORD your God or to the head judge will die. Removeb such evil from Israel!
All the people will hear about this and be afraid. They won't act arrogantly anymore.
Once you have entered the land the LORD your God is giving you and you have taken possession of it and settled down in it, you might say: "Let's appoint a king over us, as all our neighboring nations have done."
You can indeed appoint over you a king that the LORD your God selects. You can appoint over you a king who is one of your fellow Israelites. You are not allowed to appoint over you a foreigner who is not one of your fellow Israelites.
That granted, the king must not acquire too many horses, and he must not return the people to Egypt in order to acquire more horses, because the LORD told you: "You will never go back by that road again."
The king must not take numerous wives so that his heart doesn't go astray. Nor can the king acquire too much silver and gold.
Instead, when he sits on his royal throne, he himself must write a copy of this Instruction on a scroll in the presence of the levitical priests.
That Instruction must remain with him, and he must read in it every day of his life so that he learns to revere the LORD his God by keeping all the words of this Instruction and these regulations, by doing them,
by not being overbearing toward his fellow Israelites, and by not deviating even a bit from the commandment. If the king does all that, he will ensure lasting rule in Israel for himself and for his successors.