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."
حدثنا مؤمل بن هشام يعني اليشكري حدثنا إسمعيل عن سوار أبي حمزة قال أبو داود وهو سوار بن داود أبو حمزة المزني الصيرفي
قال رسول الله ﷺ مروا أولادكم بالصلاة وهم أبناء سبع سنين واضربوهم عليها وهم أبناء عشر وفرقوا بينهم في المضاجع