The author (may Allah shower blessings on him) narrated on the authority of Amr bin Shuaib from his father from his grandfather that the Prophet ﷺ said: "Command your children to perform Salat (Prayer) when they are seven, and beat them for (not offering) it when they are ten." It is a Hasan hadeeth and it has a corroborating evidence in the Hadeeth of Sabrah bin Ma'bad al-Juhanee (may Allah be pleased with him). This is one of the rights of children on the fathers; they command them to perform the Prayer when they reach seven years old and beat them for neglecting or missing it when
they become ten years old. However, this is with a condition that they possess sound mind.
If they reach the age of seven or ten but lack sense of comprehension, bereft of intelligence, they would not be commanded or beaten for anything. Nonetheless, they must be prevented from sabotage, be it in the house or outside.
And his statement: “and beat them for (not offering) it when they are ten”, the intent is the beating with which learning and refinement, not harm, are achieved. Consequently, it is not permissible for the father to beat his children violently and repeatedly, there is no need for such. However, if there is a reason to beat him, for example a child does not stand up for the Prayer, the father should carry it out in a non-violent manner, a humane beating. The Prophet ﷺ only ordered beating them as a means of refinement and reformation, not for their destruction.
Similarly, there is a rebuttal in this hadeeth for what some contemporary individuals, those who claimed to be scholars of child psychology, say about not beating heedless children in schools. This demonstrates the falsity of their incorrect thought. Usually, mere discourse does not benefit some kids, whereas beating does. Hence, if they were left without beating, they would neglect their duties, and become lax and heedless of their studies. Therefore, beating them is necessary to get them to adjust to the system, and carry out what is necessary for them to do. Otherwise, the matter will become chaotic.
Notwithstanding, as we have said, the beating must be for refinement, not destruction or impairment. Therefore, he should be beaten in a manner appropriate for his situation, a non-violent beating. One should not be like some teachers in the past who beat ruthlessly in order to cause intense pain. On the other hand, one should not be thoughtless like these child psychologists, who are actually the farthest people from child psychology, that claim that a child should not be reprimanded for defiance or lack of cognition. But, the reality is that beating does refine a child.
Only Allah grants success.