Deuteronomy 25:3

NLT
New Living Translation

3But never give more than forty lashes; more than forty lashes would publicly humiliate your neighbor.