When fasting becomes obligatory
Allah says: "O you who have believed, decreed upon you is fasting as it was decreed upon those before you that you may become righteous" (Quran 2:183). The command is for those who are accountable, which means adults of sound mind. The Prophet ﷺ said that the pen is lifted from three, among them "the child until he reaches puberty" (Sunan Abi Dawud 4403). So a child below puberty is not obliged to fast, and a parent is not sinful if the child does not fast.
Scholars mention these signs of puberty: a wet dream or emission of semen, the growth of pubic hair, and, for girls, menstruation. When none of these appears, the schools differ on the age, and many scholars say that it is fifteen lunar years, while some schools give a higher age. This comes from the report of Ibn Umar, who was not accepted for the battle of Uhud at fourteen and was accepted at the battle of the Trench at fifteen (Sahih al-Bukhari 2664).



