Abdullah bin Amr bin As reported,

The Messenger of Allah ﷺ said, "Instruct your children to pray when they are seven years old, discipline them for neglecting it when they are ten, and separate them in their sleeping places."

Abu Dawud 495

Sahih

حدثنا مؤمل بن هشام يعني اليشكري حدثنا إسمعيل عن سوار أبي حمزة قال أبو داود وهو سوار بن داود أبو حمزة المزني الصيرفي

عن عمرو بن شعيب عن أبيه عن جده قال

قال رسول الله ﷺ مروا أولادكم بالصلاة وهم أبناء سبع سنين واضربوهم عليها وهم أبناء عشر وفرقوا بينهم في المضاجع

أبو داود 495صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer
Chapter
When a boy should be commanded to pray
Numbering
Darussalam 495
Abu Dawud 495