Deuteronomy 25:2 CJB

2 then, if the wicked one deserves to be flogged, the judge is to have him lie down and be flogged in his presence. The number of strokes is to be proportionate to his offense;