Deuteronomy 25:2

Brenton(i) 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.