Deuteronomy 25:1-2

25:1 If controversy arises between people, they should go to court for judgment. When the judges hear the case, they shall exonerate the innocent but condemn the guilty. 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.

John 7:51

7:51 “Our law doesn’t condemn a man unless it first hears from him and learns what he is doing, does it?”

John 18:24

18:24 Then Annas sent him, still tied up, to Caiaphas the high priest.