Deuteronomy 25:3
He may receive no more than forty lashes, lest your brother be beaten any more than that and be degraded in your sight.
Berean Standard Bible
Forty stripes he may give him, and not exceed: lest, if he should exceed, and beat him above these with many stripes, then thy brother should seem vile unto thee.
He may sentence him to no more than forty stripes. He shall not give more, lest if he should give more and beat him more than that many stripes, then your brother will be degraded in your sight.