Proverbs 29:15 in the King James Version
The rod and reproof give wisdom: but a child left to himself bringeth his mother to shame.
Context
14 The king who fairly judges the poor, his throne shall be established forever.
15 The rod of correction gives wisdom, but a child left to himself causes shame to his mother.
16 When the wicked increase, sin increases; but the righteous will see their downfall.