Deuteronomy 21:18–21

If a man have a stubborn and unruly son, who will not hear the commandments of his father or mother, and being corrected, slighteth obedience: 19They shall take him and bring him to the ancients of the city, and to the gate of judgment, 20And shall say to them: This our son is rebellious and stubborn, he slighteth hearing our admonitions, he giveth himself to revelling, and to debauchery and banquetings: 21The people of the city shall stone him: and he shall die, that you may take away the evil out of the midst of you, and all Israel hearing it may be afraid.