2 “When you begin living in the towns the Lord your God is giving you, a man or woman among you might do evil in the sight of the Lord your God and violate the covenant. 3 For instance, they might serve other gods or worship the sun, the moon, or any of the stars—the forces of heaven—which I have strictly forbidden. 4 When you hear about it, investigate the matter thoroughly. If it is true that this detestable thing has been done in Israel, 5 then the man or woman who has committed such an evil act must be taken to the gates of the town and stoned to death. 6 But never put a person to death on the testimony of only one witness. There must always be two or three witnesses. 7 The witnesses must throw the first stones, and then all the people may join in. In this way, you will purge the evil from among you.
8 “Suppose a case arises in a local court that is too hard for you to decide—for instance, whether someone is guilty of murder or only of manslaughter, or a difficult lawsuit, or a case involving different kinds of assault. Take such legal cases to the place the Lord your God will choose, 9 and present them to the Levitical priests or the judge on duty at that time. They will hear the case and declare the verdict. 10 You must carry out the verdict they announce and the sentence they prescribe at the place the Lord chooses. You must do exactly what they say. 11 After they have interpreted the law and declared their verdict, the sentence they impose must be fully executed; do not modify it in any way. 12 Anyone arrogant enough to reject the verdict of the judge or of the priest who represents the Lord your God must die. In this way you will purge the evil from Israel. 13 Then everyone else will hear about it and be afraid to act so arrogantly.
14 “You are about to enter the land the Lord your God is giving you. When you take it over and settle there, you may think, ‘We should select a king to rule over us like the other nations around us.’ 15 If this happens, be sure to select as king the man the Lord your God chooses. You must appoint a fellow Israelite; he may not be a foreigner.
16 “The king must not build up a large stable of horses for himself or send his people to Egypt to buy horses, for the Lord has told you, ‘You must never return to Egypt.’ 17 The king must not take many wives for himself, because they will turn his heart away from the Lord. And he must not accumulate large amounts of wealth in silver and gold for himself.
18 “When he sits on the throne as king, he must copy for himself this body of instruction on a scroll in the presence of the Levitical priests. 19 He must always keep that copy with him and read it daily as long as he lives. That way he will learn to fear the Lord his God by obeying all the terms of these instructions and decrees. 20 This regular reading will prevent him from becoming proud and acting as if he is above his fellow citizens. It will also prevent him from turning away from these commands in the smallest way. And it will ensure that he and his descendants will reign for many generations in Israel.