Deuteronomy 25:2-3
Deuteronomy 25:2-3 NCV
If the guilty person has to be punished with a beating, the judge will make that person lie down and be beaten in front of him. The number of lashes should match the crime. But don’t hit a person more than forty times, because more than that would disgrace him before others.