Deuteronomy 25:1-2

Darby(i) 1 If there be a controversy between men, and they resort to judgment, and they judge [their case]; then they shall justify the righteous, and condemn the wicked. 2 And it shall be if the wicked man have deserved to be beaten, that the judge shall cause him to lie down, and be beaten before his face, according to the measure of his wickedness with a certain number [of stripes].