Deuteronomy 17:13

17:13 Then all the people will hear and be afraid, and not be so presumptuous again.

Deuteronomy 21:21

21:21 Then all the men of his city must stone him to death. In this way you will purge out wickedness from among you, and all Israel will hear about it and be afraid.