Deuteronomy 21:18-23
A son who turns against his parents
18 Perhaps a man has a son who refuses to obey his parents. They punish him to teach him what is right, but he refuses to listen to them. 19 If so, his parents must take their son to the leaders at the city gate. 20 They must say to the leaders, ‘This is our son. He refuses to obey us. He does not do what we tell him. He only wants to do what will please himself. He drinks too much and he becomes drunk.’
21 Then all the men of the city must throw stones at the son until he is dead. In this way, you must remove all evil things like that from among you. Then all Israel's people will hear about what has happened. They will be afraid.
22 A person may do an evil thing so that you punish him with death. If you have hung his dead body on a tree, 23 you must not leave it there during the night. Be careful to bury it on the same day that he died. If someone's body is hanging on a tree, it shows that God has cursed him. So do not leave it there. The Lord your God is giving the land to you so that it belongs to you. So do not let evil things spoil your land.