Proverbs 10:1 The proverbs of Solomon. A wise son maketh a glad father: But a foolish son is the heaviness of his mother.
A rebellious son or daughter is a horrible thing. This child breaks the heart of his parents. This child causes great sorrow. We are to teach our children. We are to bring them up to serve God. Discipline can and should drive the foolishness from their hearts. The child should make up his own mind that he will serve God and honor his parents.
Consider this verse
Proverbs 17:21 He that begetteth a fool doeth it to his sorrow: And the father of a fool hath no joy.
You are to train your children up in the way that they should go but they will have to decide if they will honor that training. The word beget here just means give birth to. One of the hardest lessons for me to learn was that my children had to and could make up their own minds about serving God.