Narrated Abdullah ibn Amr ibn al-'As: 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
Hadith No. 495
Sunan Abu Dawud
Gradings:
Al-Albani:
Hasan Sahih
Muhammad Muhyi Al-Din Abdul Hamid:
Hasan Sahih
Zubair Ali Zai:
Sahih