Thomas Szasz said this quote

Parents teach children discipline for two different, indeed diametrically opposed, reasons: to render the child submissive to them and to make him independent of them. Only a self-disciplined person can be obedient; and only such a person can be autonomous.