Deuteronomy 25:1-3 NIV

1 When people have a dispute, they are to take it to court and the judges will decide the case, acquitting the innocent and condemning the guilty.

References for Deuteronomy 25:1

2 If the guilty person deserves to be beaten, the judge shall make them lie down and have them flogged in his presence with the number of lashes the crime deserves,

References for Deuteronomy 25:2

3 but the judge must not impose more than forty lashes. If the guilty party is flogged more than that, your fellow Israelite will be degraded in your eyes.

References for Deuteronomy 25:3