Deuteronomy 21:18-21 (Old Testament)"If a man has a stubborn and rebellious son who does not obey his father and mother and will not listen to them when they discipline him, 19 his father and mother shall take hold of him and bring him to the elders at the gate of his town. 20 They shall say to the elders, "This son of ours is stubborn and rebellious. He will not obey us. He is a profligate and a drunkard." 21 Then all the men of his town shall stone him to death."
There is an argument of whether this applies to all children in general or only the Israelites but this is the one you're probably looking for.