People used to say, "Spare the rod, spoil the child."
It is biblical.
"Foolishness is bound up in the heart of a child; The rod of correction will drive it far from him."
"He who spares his rod hates his son, But he who loves him disciplines him promptly."
Proverbs 22:15; 13:24