Deuteronomy 2:33

2:33 the Lord our God delivered him over to us and we struck him down, along with his sons and everyone else.

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.