It is narrated from Sayyiduna Sabrah that the Prophet (peace and blessings be upon him) said: When a boy reaches the age of seven, he should be instructed to pray, and when he reaches the age of ten, he should be beaten for not praying.