TIRMIDHI 407:
from Ḥarmalah b. ʿAbd al-ʿAzīz b. al-Rabīʿ b. Sabrah al-Juhanī from his uncle ʿAbd al-Malik b. al-Rabīʿ b. Sabrah from his father from his grandfather —
Messenger of Allah (S) said: "Teach the boy Salat when he is seven years old, and beat him (if he does not pray) when he is ten."
الترمذي ٤٠٧:
عن حرمله بن عبد العزيز بن الربيع بن سبره الجهني عن انcلeه عبد الملك بن الربيع بن سبره عن أبيه عن جده —
قَالَ رَسُولُ اللَّهِ ﷺ عَلِّمُوا الصَّبِيَّ الصَّلاَةَ ابْنَ سَبْعِ سِنِينَ وَاضْرِبُوهُ عَلَيْهَا ابْنَ عَشْرٍ قَالَ وَفِي الْبَابِ عَنْ عَبْدِ اللَّهِ بْنِ عَمْرٍو
hadithunlocked.com