Deuteronomy 25:2

ISV(i) 2 If the guilty person deserves a beating, the judge will make him lie down and be beaten in his presence with the number of lashes fit for his crime.