[Machine] The Messenger of Allah ﷺ said: "When a boy reaches the age of seven, he is commanded to perform prayers. And when he reaches the age of ten, discipline should be enforced for it."
قَالَ رَسُولُ اللهِ ﷺ إِذَا بَلَغَ الْغُلَامُ سَبْعَ سِنِينَ أُمِرَ بِالصَّلَاةِ فَإِذَا بَلَغَ عَشْرًا ضُرِبَ عَلَيْهَا