Deuteronomy 25:2

NHEB(i) 2 and it shall be if the wicked man deserves to be beaten, that the judge shall make him lie down and be beaten in his presence with a number of stripes, according to his guilt.