Deuteronomy 25:2 NIRV

2 The guilty one might have done something that's worthy of a beating. Then the judge will make him lie down and be beaten with a whip right there in court. The number of strokes should fit the crime.