Many parents think that the Bible condones or even commands the use of corporal punishment in parenting. This argument is made by citing 5 passage in Proverbs and 1 passage in Hebrews as their "proof" that spanking is biblical. However, the core of this argument sits on Hebrews 12:5-6. But, this argument in Hebrews sits on shaky ground. The Bible simply speaks in Hebrews of enduring hardship, not any discipline coming from earthly fathers.
God's Word on enduring hardship is spelled out in Hebrews 12:5-6 KJV:
And ye have forgotten the exhortation that speaketh unto you as unto children, My son, despise not thou the chastening of the Lord, nor faint when thou art rebuked of him: For whom the Lord thy God loveth he chasteneth, and scourgeth every son whom he receiveth.
This passage, when understood correctly, is comforting to me. The Greek root word translated "scourgeth" is μαστιγόω (Latin: mastigoó) and can have a figurative meaning to it, as is the case here. This sort of metaphor is known as rod language, and refers to enduring hardship. If a Christian man had a long day at work, he instead said "God whipped me hard today". God obviously does not literally reach down from the Heavens and whip His children. However, God does punish His children, as only He can, sending trials and tribulations the way of the children that He loves the most. However, God only punishes His children when it does not harm them, whereas earthly parents only punish their children when it does, in fact, harm them. This passage was intended as comfort for the Early Christiana in their persecution from Rome.
The teaching of "biblical spanking" is a man-made teaching. Nowhere does the Bible legitimately allow for or command spanking a child. God does not want His Parenting methods to be used by earthly parents, lest they get it wrong. However, the Bible does touch in on the spanking issue, and then some. See Colossians 3:21 KJV:
Fathers, provoke not your children to anger, lest they be discouraged.
The Greek root word translated "provoke...to anger" is ερεθιζο (Latin: erethizo) and refers here not to simply spanking your child, or even simply punishing them altogether for that matter. This Greek root word refers to any entitlement in parents, leading to offense in children. Offense in children consists of hurt feelings in children that parents refuse to apologize for, at minimum. With that said, if you ever lose your cool as a parent, including while setting limits, you definitely need to give a formal apology to your child for hurting their feelings with your anger, such as "I apologize for hurting your feelings with my temper", and then commit never to lose your cool with your child ever again, as any parent anger directed towards children is entitlement, and was seen as entitlement in the Early Church. This commandment cross-references the Eighth and the Tenth Commandments, with the Apostle Paul here convicting a group of Greek Christians who brought into the church their pagan custom of patrias potestas, which is a Latin phrase roughly translating to "power to the parent", namely the power to impose punitive sanctions on children, such as spanking or other forms of punishment of children. Paul, contrary to popular legend, was anti-spanking, and opposed any and all punitive parenting in his secular writings. Attachment parenting was banned under Roman law, but the Early Christians did it anyway, obeying God over men.
The staple punishment in the broader Greco-Roman world was an open-handed spanking to a bare bottom. This was seen by most of the Early Christians as pagan in origin, thus of this world, thus to be shunned. There existed pro-spanking infiltrators who brought with them into the parishes at Colossae and Ephesus their punitive parenting. Paul would have none of it in the parishes that he oversaw, and sent anti-spanking commandments to the parishes at Colossae and Ephesus.
Anger directed towards children was banned in the Early Church, and was seen as entitlement then. The Early Christians instead saw parent anger at children as akin to a viper lashing out at its prey - maybe the child got some warning, but that was it. The only anger allowed in parenting then was protective anger, with Christian parents in the Early Church protected their children through the teeth from interlopers.
The depraved and entitled parents who provoke their children to anger through punitive parenting will not inherit the Kingdom of God! Let them be cast forever into the lake of fire and burning sulfur, which is the second death prepared for Satan and his accomplices! Let them descend into the abyss which is the ever-burning Hell of fire and torment, suffering God's Wrath day and night forever and ever! Repent, for the Kingdom of Heaven is at hand!