Many parents have it as a goal for their children. Most American parents want their children to live by a set of values. However, many parents think that children need to be punished or shamed in order to have "the devil beaten out of them". However, there are better ways to instruct your child in the Christian faith than by punishing them.
God's Law on child discipline, including religious instruction, is spelled out in Ephesians 6:4 KJV:
And, ye fathers, provoke not your children to wrath: but bring them up in the nurture and admonition of the Lord.
This first stanza of this commandment clarifies for the second that children should not be taught religion using fear tactics. The Greek root word translated "provoke...to wrath" is παροργίζο (Latin: parorgizo) and refers here to offenses or damages, namely the slightest of personal offense perceived by a child, stemming from entitlement. It is one thing to stop spanking your child, including in order to "break their will". However, it is not enough to stop spanking your child, or even stop punishing your child altogether for that matter. You need to avoid offense in children. Whenever you hurt someone else's feelings, you need to apologize. It works the same in children when dealing with them. Thus, in order to avoid offense in children, you need to be willing to apologize to them for hurting your child's feelings. In many cases, all that is necessary is a reassurance of good intent coming from parents, in the form of an informal apology, whenever you hurt your child's feelings with limits not set out of anger, such as "I'm sorry, but I had to set X limit for Y reasons". However, if you ever lose your cool with your child as a parent, including while setting limits, you definitely need to give a formal apology for hurting your child's 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 a child alone is entitlement, and was seen as entitlement in the Early Church. This first stanza of this commandment cross-references the Eighth and the Tenth Commandments, with the Apostle Paul here convicting a group of Greek Christian parents who brought into the church their pagan custom of patrias potestas, which is a Latin term roughly translated to "power to the parent", namely the power to impose punitive sanctions on children, such as spanking or other forms of punishment of children. But, this first stanza ultimately was received by the parish at Ephesus as prohibiting causing offenses in children as perceived by the child, at minimum. 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.
Children don't need to have a religion beaten into them. Religion is a base human need for children and adults alike. The Greek root word translated "admonition" is νουθεσία (Latin: nouthesia) and is more aptly translated as "instruction" in more modern versions of the Bible. The Apostle Paul here was discussing religious instruction. Starting at age 6, fathers left out a Bible for children to discover and explore, with the Bible open to a reassuring passage (such as the Beatitudes). Children growing up in the Early Church taught themselves how to read on a Bible. Whenever children were caught in the act of studying the Bible, they were given lavish praise and encouragement to keep on studying the Bible. Fathers then interjected to the child "you can ask me anything about that book". From there, religious instruction came in the form of question and answer format. Children were curious about Scripture, with fathers giving pointers on the context.
Sometimes, very young children refuse to go to church. This is normal and understandable behavior in toddlers and preschoolers. Children that young are not developmentally ready for religion. Children have their own religious development, with children finding their own religion as young as age 6. Until then, children and wives should be left at home to focus on forming a secure bond, with the man of the house praying for his family. Instead of forcing children to attend your church, you should allow them to attend their own church.
Most Christian parents rush the religious development of their children. One example of this is when parents insist on grateful postures. I myself tie my hands behind my back, and nobody forced me to. Grateful postures are simply a sign of spiritual health, with children showing these postures on their own in due time.
The depraved and entitled parents who provoke their children to wrath 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!