Deuteronomy 21:21 CJB

21 Then all the men of his town are to stone him to death; in this way you will put an end to such wickedness among you, and all Isra'el will hear about it and be afraid.