Deuteronomy 25:3 New Century Version (NCV)

But don’t hit a person more than forty times, because more than that would disgrace him before others.

Deuteronomy 25

Deuteronomy 25:1-4