Hadith 1002

نَا عَلِيُّ بْنُ حُجْرٍ ، وَعَبْدُ الْجَبَّارِ بْنُ الْعَلاءِ ، وَابْنُ عَبْدِ الْحَكَمِ ، وَهَذَا حَدِيثُ عَلِيٍّ ، حَدَّثَنَا حَرْمَلَةُ بْنُ عَبْدِ الْعَزِيزِ ، عَنْ عَمِّهِ عَبْدِ الْمَلِكِ بْنِ الرَّبِيعِ ، عَنْ أَبِيهِ ، عَنْ جَدِّهِ ، قَالَ : قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " عَلِّمُوا الصَّبِيَّ الصَّلاةَ ابْنَ سَبْعِ سِنِينَ ، وَاضْرِبُوهُ عَلَيْهَا ابْنَ عَشْرٍ "
Hazrat Abdul Malik bin Rabee narrates from his father, and he from his grandfather, that the Messenger of Allah (peace and blessings be upon him) said: "Teach the child to pray at the age of seven, and at the age of ten (if he does not pray) discipline him (by beating)."
Hadith Reference صحيح ابن خزيمه / 1002
Hadith Takhrij اسناده حسن