proverb

Spare the rod and spoil the child.

punishment

suggests that

You spoil children's character if you don't punish them when they are wrong.