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 29:26
29:26 They went and served other gods and worshiped them, gods they did not know and that he did not permit them to worship.