Abu-Dawud 2:0494

Narrated As-Saburah:

The Prophet (peace be upon him) said: Command a boy to pray when he reaches the age of seven years. When he becomes ten years old, then beat him for prayer.