Deuteronomy 17:5

17:5 you must bring to your city gates that man or woman who has done this wicked thing – that very man or woman – and you must stone that person to death.

Deuteronomy 25:2

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.