said to mean that if you do not punish a child when it does something wrong, it will not learn what is right
(Definition of spare the rod and spoil the child from the Cambridge Advanced Learner’s Dictionary & Thesaurus © Cambridge University Press)