Proverbs 23:13 in the King James Version
Withhold not correction from the child: for if thou beatest him with the rod, he shall not die.
Context
12 Apply your heart to instruction, and your ears to the words of knowledge.
13 Don’t withhold correction from a child. If you punish him with the rod, he will not die.
14 Punish him with the rod, and save his soul from Sheol.