Deuteronomy.
Chapter 17.
“You must not sacrifice to the LORD your God an ox or sheep that has anything wrong with it. The LORD your God would hate that. 
“You might hear about an evil thing that happens in one of the cities that the LORD your God is giving you. You might hear that a man or woman in your group has sinned against the LORD your God. You might hear that they have broken his agreement or 
that they have worshiped other gods or maybe the sun, the moon or the stars. I never told you to do that! 
If you hear bad news like this, you must check it carefully. You must learn if it is true that this terrible thing has really happened in Israel. If you prove that it is true, 
you must punish the person who did this evil thing. You must take that man or woman out to a public place near the city gates and kill them with stones. 
But no one should be punished with death if only one witness says that person did that evil thing. But if two or three witnesses say it is true, the person must be killed. 
The witnesses must throw the first stones to kill that person. Then the other people should throw stones to finish killing that person. In this way you will remove this evil from your group. 
“There might be some problems that are too hard for your courts to judge. It might be a murder case or an argument between two people. Or it might be a fight in which someone was hurt. When these cases are argued in your towns, your judges there might not be able to decide what is right. Then you must go to the special place that the LORD your God will choose. 
You must go to the priests who are Levites and to the judge on duty at that time. They will decide what to do about that problem. 
There at the LORD’S special place they will tell you their decision. You must do whatever they say. Be sure to do everything they tell you to do. 
You must accept their decision and follow their instructions exactly—don’t change anything! 
“You must punish anyone who refuses to obey the judge or the priest who is there at that time serving the LORD your God. That person must die. You must remove this evil person from Israel. 
All the people will hear about this punishment and be afraid. Then they will not be stubborn anymore. 
“You will enter the land that the LORD your God is giving you. You will take that land and live in it. Then you will say, ‘We will put a king over us, like all the nations around us.’ 
When that happens, you must be sure to choose the king that the LORD your God chooses. The king over you must be one of your own people. You must not make a foreigner your king. 
The king must not get more and more horses for himself. And he must not send people to Egypt to get more horses, because the LORD has told you, ‘You must never go back that way.’ 
Also, the king must not have too many wives, because that will make him turn away from the Lord. And he must not make himself rich with silver and gold. 
“When the king begins to rule, he must write a copy of the law for himself in a book. He must make that copy from the books that the priests from the tribe of Levi keep. 
He must keep that book with him and read from it all his life, because he must learn to respect the LORD his God. He must learn to completely obey everything the law commands. 
Then the king will not think that he is better than any of his own people. He will not turn away from the law, but he will follow it exactly. Then he and his descendants will rule the kingdom of Israel a long time. 
