Deuteronomy 25:2 New International Reader's Version (NIRV)

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.

Deuteronomy 25

Deuteronomy 25:1-12