Deuteronomy 17:9
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.
Deuteronomy 25:3
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.