Deuteronomy 21:18-21

18 "If a man has a stubborn and rebellious son who will not obey the voice of his father or the voice of his mother, and who, when they have chastened him, will not heed them,
19 then his father and his mother shall take hold of him and bring him out to the elders of his city, to the gate of his city.
20 And they shall say to the elders of his city, 'This son of ours is stubborn and rebellious; he will not obey our voice; he is a glutton and a drunkard.'
21 Then all the men of his city shall stone him to death with stones; so you shall put away the evil from among you, and all Israel shall hear and fear.

Deuteronomy 21:18-21 Meaning and Commentary

INTRODUCTION TO DEUTERONOMY 21

This chapter treats of the beheading of the heifer, for the expiation of unknown murder, and the rules to be observed in it, De 21:1-9 of a beautiful captive woman an Israelite is desirous of having for his wife, and what methods he must take to accomplish it, De 21:10-14, of giving the double portion to the firstborn, which he must not be deprived of in favour of the son of a beloved wife, De 21:15-17 and of the stubborn and rebellious son, who remaining so must be put to death, De 21:18-21 and of burying a person hanged on a tree the same day he is executed, De 21:22,23.

Deuteronomy 21:18-21 In-Context

16 then it shall be, on the day he bequeaths his possessions to his sons, that he must not bestow firstborn status on the son of the loved wife in preference to the son of the unloved, the true firstborn.
17 But he shall acknowledge the son of the unloved wife as the firstborn by giving him a double portion of all that he has, for he is the beginning of his strength; the right of the firstborn is his.
18 "If a man has a stubborn and rebellious son who will not obey the voice of his father or the voice of his mother, and who, when they have chastened him, will not heed them,
19 then his father and his mother shall take hold of him and bring him out to the elders of his city, to the gate of his city.
20 And they shall say to the elders of his city, 'This son of ours is stubborn and rebellious; he will not obey our voice; he is a glutton and a drunkard.'
21 Then all the men of his city shall stone him to death with stones; so you shall put away the evil from among you, and all Israel shall hear and fear.
22 "If a man has committed a sin deserving of death, and he is put to death, and you hang him on a tree,
23 his body shall not remain overnight on the tree, but you shall surely bury him that day, so that you do not defile the land which the Lord your God is giving you as an inheritance; for he who is hanged is accursed of God.
Scripture taken from the New King James Version. Copyright © 1982 by Thomas Nelson, Inc. Used by permission. All rights reserved.