Deuteronomy 25:3

25:3 The judge may sentence him to forty blows, but no more. If he is struck with more than these, you might view your fellow Israelite with contempt.

Deuteronomy 28:61

28:61 Moreover, the Lord will bring upon you every kind of sickness and plague not mentioned in this scroll of commandments, until you have perished.