The bringing up of a child begins when a person looks for marriage. Initially when a person seeks a spouse they should look for a good and righteous person. As this is the basis for the future for them and their children.
So Islām wants for everyone to understand their roles in nurturing the household - from before marriage all the way up to the birth and growth of a child.
And especially in the difficult times we are in; where the fitnah is great; and the natural fitrah of children is under attack- it is most vital to know and have the tools and means to protecting their family and children. The basis of this protection is to seek knowledge first - so that you have a strong base of knowledge to deflect any fitnah that may befall you.
Ibn Umar said, discipline your child for indeed you will be question about him. What did you discipline him upon, what did you teach him? He will be questioned regarding being good to you, fulfilling your rights and obedience to you.
How to discipline a child:
Ibn Uthaymeen on the parents:
When you instruct you child to do a certain affairs there are two ways: 1. Do this or stay awa from this. This could have the effect of disciplining the child on that. There is a more effective method: 2. That you mention the evidence along with the action. That you mention the prophet, peace be upon him said or Allah said With the second you acquire two things, discipline and ittibaa’ – following the evidence and following the book of Allah.