ABUDAWUD 495:
from Sawwār Abū Ḥamzah —
The Messenger of Allah ﷺ said: Command your children to pray when they become seven years old, and beat them for it (prayer) when they become ten years old; and arrange their beds (to sleep) separately.
أبو داود ٤٩٥:
عن سوار ابو حمزه —
قَالَ رَسُولُ اللَّهِ ﷺ مُرُوا أَوْلاَدَكُمْ بِالصَّلاَةِ وَهُمْ أَبْنَاءُ سَبْعِ سِنِينَ وَاضْرِبُوهُمْ عَلَيْهَا وَهُمْ أَبْنَاءُ عَشْرِ سِنِينَ وَفَرِّقُوا بَيْنَهُمْ فِي الْمَضَاجِعِ