Deuteronomy 25:2-3

25:2 Then, if the guilty person is sentenced to a beating, the judge shall force him to lie down and be beaten in his presence with the number of blows his wicked behavior deserves. 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.

Matthew 10:17

10:17 Beware of people, because they will hand you over to councils and flog you in their synagogues.

Mark 13:9

Persecution of Disciples

13:9 “You must watch out for yourselves. You will be handed over to councils and beaten in the synagogues. You will stand before governors and kings because of me, as a witness to them.