Sunan Abu Dawud #495
Prayer (Kitab Al-Salat) 2:105
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.