حَدَّثَنَا سُلَيْمَانُ بْنُ دَاوُدَ الْمَهْرِيُّ، حَدَّثَنَا ابْنُ وَهْبٍ، أَخْبَرَنَا هِشَامُ بْنُ سَعْدٍ، حَدَّثَنِي مُعَاذُ بْنُ عَبْدِ اللَّهِ بْنِ خُبَيْبٍ الْجُهَنِيُّ، قَالَ دَخَلْنَا عَلَيْهِ فَقَالَ لاِمْرَأَتِهِ مَتَى يُصَلِّي الصَّبِيُّ فَقَالَتْ كَانَ رَجُلٌ مِنَّا يَذْكُرُ عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم أَنَّهُ سُئِلَ عَنْ ذَلِكَ فَقَالَ ‏"‏إِذَا عَرَفَ يَمِينَهُ مِنْ شِمَالِهِ فَمُرُوهُ بِالصَّلاَةِ ‏"
Translation
Narrated Mu'adh ibn Abdullah ibn Khubayb al-Juhani

We entered upon him, and he said to his wife: 'When does a boy pray?' She replied: 'A man among us used to report from the Messenger of Allah (ﷺ) that he was asked about that, and he said: "When he knows his right hand from his left hand, then command him to pray."'