Sirach (Ecclesiasticus) 30:1

He that loveth his son causeth him oft to feel the rod, that he may have joy of him in the end.

Brenton's English Septuagint