"The judge shall cause him to lie down, and to be beaten before his face" De 25
The rod, not jail time, has the biblical basis.

image