Brewer's: Forty Stripes save One
The Jews were forbidden by the Mosaic law to inflict more than forty stripes on an offender, and for fear of breaking the law they stopped short of the number. If the scourge contained three lashes, thirteen strokes would equal ?forty save one.?
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894