Deuteronomy 25:2
"And it shall be, if the wicked man be worthy to be beaten, that the judge shall cause him to lie down, and to be beaten before his face, according to his fault, by a certain number."
Cross References (ranked by relevance)
For what glory is it, if, when ye be buffeted for your faults, ye shall take it patiently? but if, when ye do well, and suffer for it, ye take it patiently, this is acceptable with God.
And to him they agreed: and when they had called the apostles, and beaten them, they commanded that they should not speak in the name of Jesus, and let them go.
Then released he Barabbas unto them: and when he had scourged Jesus, he delivered him to be crucified.
Who his own self bare our sins in his own body on the tree, that we, being dead to sins, should live unto righteousness: by whose stripes ye were healed.
But beware of men: for they will deliver you up to the councils, and they will scourge you in their synagogues;