Deuteronomy 17:8-12
Appeal to a Higher Court
17:8 If a matter is too difficult for you to judge – bloodshed, legal claim, or assault – matters of controversy in your villages – you must leave there and go up to the place the Lord your God chooses.
17:9 You will go to the Levitical priests and the judge in office in those days and seek a solution; they will render a verdict.
17:10 You must then do as they have determined at that place the Lord chooses. Be careful to do just as you are taught.
17:11 You must do what you are instructed, and the verdict they pronounce to you, without fail. Do not deviate right or left from what they tell you.
17:12 The person who pays no attention to the priest currently serving the Lord your God there, or to the verdict – that person must die, so that you may purge evil from Israel.
Deuteronomy 25:1-3
25:1 If controversy arises between people, they should go to court for judgment. When the judges hear the case, they shall exonerate the innocent but condemn the guilty.
25:2 Then, if the guilty person is sentenced to a beating, the judge shall force him to lie down and be beaten in his presence with the number of blows his wicked behavior deserves.
25:3 The judge may sentence him to forty blows, but no more. If he is struck with more than these, you might view your fellow Israelite with contempt.