Allah's Messenger (S) said: "Teach the boy Salat when he is seven years old, and beat him (if he does not pray) when he is ten."
Jami` at-Tirmidhi Book 2, Hadith 260