"If a man or woman among you in one of your towns that the Lord your God will give you is discovered doing evil in the sight of the Lord your God and violating His covenant
and has gone to worship other gods by bowing down to the sun, moon, or all the stars in the sky-which I have forbidden-
and if you are told or hear [about it], you must investigate it thoroughly. If the report turns out to be true that this detestable thing has happened in Israel,
you must bring out to your gates that man or woman who has done this evil thing and stone them to death.
The one condemned to die is to be executed on the testimony of two or three witnesses. No one is to be executed on the testimony of a single witness.
The witnesses' hands are to be the first in putting him to death, and after that, the hands of all the people. You must purge the evil from you.
"If a case is too difficult for you-concerning bloodshed,b lawsuits,c or assaultsd-cases disputed at your gates,e you must go up to the place the Lord your God chooses.
You are to go to the Levitical priests and to the judge who presides at that time. Ask, and they will give you a verdict in the case.
You must abide by the verdict they give you at the place the Lord chooses. Be careful to do exactly as they instruct you.
You must abide by the instruction they give you and the verdict they announce to you. Do not turn to the right or the left from the decision they declare to you.
The person who acts arrogantly, refusing to listen either to the priest who stands there serving the Lord your God or to the judge, must die. You must purge the evil from Israel.
Then all the people will hear [about it], be afraid, and no longer behave arrogantly.
"When you enter the land the Lord your God is giving you, take possession of it, live in it, and say, 'We want to appoint a king over us like all the nations around us,'
you are to appoint over you the king the Lord your God chooses.f Appoint a king from your brothers. You are not to set a foreigner over you, or one who is not of your people.g16
However, he must not acquire many horses for himself or send the people back to Egypt to acquire many horses, for the Lord has told you, 'You are never to go back that way again.'h17
He must not acquire many wives for himself so that his heart won't go astray. He must not acquire very large amounts of silver and gold for himself.
When he is seated on his royal throne, he is to write a copy of this instruction for himself on a scroll in the presence of the Levitical priests.
It is to remain with him, and he is to read from it all the days of his life, so that he may learn to fear the Lord his God, to observe all the words of this instruction, and to do these statutes.
Then his heart will not be exalted above his countrymen, he will not turn from this command to the right or the left, and he and his sons will continue ruling many yearsi over Israel.