Proverbs 10:1—A wise son maketh a glad father: but a foolish son is the heaviness of his mother (KJV).
The wisdom of a child is directly related to the wisdom that comes from the parents. This relates to financial matters, pragmatic matters and, certainly, spiritual matters. The parents may have given good indications in all three areas, but still the child refuses to take the teachings given. Thus, it is not always the case that the parents have failed (obviously), but it may be an indication of it. On the other hand, if there is no wisdom in a child, whatever the reason, in time, it’s the child’s obligation to take responsibility for self.
The parents who do all they can do to impart love, discipline and wisdom to the children will reap the benefits of that effort. In such cases, how can it be but that the son/daughter will make the parents glad. On the other hand, if the child refuses to take the loving counsel, then in time the heartache that belongs to the parents will soon be the heartache of the child.