Narrated As-Saburah:
The Prophet (ﷺ) said: Command a boy to pray when he reaches the age of seven years. When he becomes ten years old, then beat him for prayer.
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا زَيْدُ بْنُ الْحُبَابِ، حَدَّثَنَا عَبْدُ الْمَلِكِ بْنُ رَبِيعِ بْنِ سَبْرَةَ بْنِ مَعْبَدٍ الْجُهَنِيُّ، أَخْبَرَنِي أَبِي، عَنْ أَبِيهِ، أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ قَالَ " لاَ يُصَلَّى فِي أَعْطَانِ الإِبِلِ وَيُصَلَّى فِي مُرَاحِ الْغَنَمِ " .
'Abdul-Malik bin Rabi' bin Sabrah bin Ma'bad Al-Juhani said:
"My father told me, from his father that the Messenger of Allah (ﷺ) said: 'Do not perform prayer in the camels' resting-places, and perform prayer in the sheep…
'Abd al-Malik b. Rabi' b. Sabraal-Juhanni reported on the authority of his father who narrated it on the authority of his father (i e. 'Abd al-Malik's grandfather, Sabura al-Juhanniy Allah's Messenger (ﷺ) permitted us to…
(Sabrah bin Ma'bad al-Juhni) narrated that:
Allah's Messenger (S) said: "Teach the boy Salat when he is seven years old, and beat him (if he does not pray) when he is ten."