Spare the rod and spoil the child.
'Hudibras' pt. 2 (1664), canto 1, l. 843

Spare the rod and spoil the child.