Deuteronomy Chapter 25, Verse 2
From BibleWiki
2: And it shall be, if the wicked man be worthy to be beaten,
that the judge shall cause him to lie down, and to be beaten
before his face, according to his fault, by a certain number.
2: And if they see that the offender be worthy of stripes: they shall
lay him down, and shall cause him to be beaten before them. According
to the measure of the sin shall the measure also of the stripes be:
2: then it shall come to pass, if the unrighteous should be worthy of stripes, thou shalt lay him down before the judges, and they shall scourge him before them according to his iniquity.
Deuteronomy Chapter 25, Verse 2/commentary

