Proverbs 13:24

New International Version Bible (NIV)
Whoever spares the rod hates their children,
    but the one who loves their children is careful to discipline them.

Read Proverbs 13:24 in other translations