Proverbs 23:13-14 KJV
(13) Withhold not correction from the child: for if thou beatest him with the rod, he shall not die.
(14) Thou shalt beat him with the rod, and shalt deliver his soul from hell.
Study after study shows that this isn’t effective. It encourages avoidance behavior but doesn’t do a thing to change the underlying behavior when the person doing the beating isn’t there. You’d think an omnipotent God would know…
It is more than that of course. It says it saves you from Hell. Apparently God doesn’t care if you want to do the bad thing after all. He would rather you be beaten into submission and have you not do it out of fear.