What is the ruling on someone who eats or drinks thinking that the sun has set, then realizes that it has not yet set?
Whoever eats or drinks believing that the sun has set, then later discovers that it has not yet set, their fast is invalid, and they must make up that day after Ramadan. It is not permissible to break the fast before confirming sunset—either by seeing it, through personal reasoning, or by relying on the statement of someone trustworthy in their religious commitment.
"I told my family at night: 'I will fast tomorrow as qaḍā' (a make-up fast),' but I forgot to make the intention before sleeping. Is my fast valid?"
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
The intention is obligatory in acts of worship. For obligatory fasting, the required intention is to resolve to fast during the night [before dawn]. Its proper locus is the heart, while verbalizing the intention out loud in acts of worship is a sunnah — so that the tongue may align with the heart. If the intent behind the statement in question was the intention to fast, then it is valid; but if the intent was merely to inform someone, or reflected hesitation or doubt, then it is not valid.
It is stated in *Bushrā al-Karīm* (Vol.1/P.216): "It is a sunnah to verbalize the intention — that is, whatever has already been intended in the heart, whether an obligatory or a voluntary act — such as specifying the number of rak‘ahs, just before the opening takbīr — so that the tongue may assist the heart, and because this is further removed from whispered doubts (waswasah), and in order to accommodate the view of those who held it obligatory in every act of worship that requires an intention (even though this is a minority position), by analogy with Ḥajj."
Accordingly: if the intention to fast arose in your heart before the second adhān [i.e., before Fajr], then your fast is valid.
And Allah, the Exalted, knows best.
Is fasting obligatory for a child?
Fasting is not obligatory for a child until they reach puberty. Puberty is determined by well-known signs, the most common of which are: nocturnal emission (for both males and females), menstruation (for females), or reaching the age of fifteen lunar years.
A guardian must instruct their children to fast once they reach the age of discernment, which is around seven years old, if they are capable of fasting.
What is the ruling on making up missed prayers during prohibited times?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
It is permissible to make up (qada’) missed prayers at any time, even during the periods when prayer is generally prohibited. The prayers that are forbidden and considered invalid during these times are 'absolute voluntary prayers' (nafl mutlaq)—which have no specific cause—and voluntary prayers whose cause follows the prayer itself, such as the Sunnah of entering Ihram or the Sunnah of the Istikharah prayer. Furthermore, no prayer is considered disliked (makruh) during these prohibited times when performed within the Meccan Sanctuary (Makkah al-Mukarramah).
It is stated in Bushra al-Karim (Vol.1/P.181), one of the Shafi’i texts: 'It is not forbidden to perform prayers that have a cause that is not delayed (i.e., the cause is preceding), such as making up a missed prayer (fa’itah)—even if it was a voluntary one—and the funeral prayer (janazah); or a cause that is simultaneous, such as the prayer for rain (istisqa’) or the eclipse prayer (kusuf)... and the Sunnah of wudu, the greeting of the mosque (tahiyyat al-masjid), the Sunnah of circumambulation (tawaf), the Sunnah of arrival, and the prostrations of recitation (tilawah) or thankfulness (shukr). These mentioned prayers and their like are not forbidden provided that one does not specifically intend (ta'ammud) to perform them during the disliked time because it is a disliked time. If one does so intentionally, it becomes forbidden, even if it is a mandatory makeup prayer that is due immediately; because in that case, one is acting in defiance of the Sharia. This is in contrast to when one does not specifically seek out that time, even if the prayer happens to fall within it, or if one seeks it for another purpose—such as delaying a funeral prayer to that time so that a larger number of people may pray over the deceased; in such cases, it is permissible and valid... And it is forbidden to perform prayers with no cause at all, like absolute nafl, or those with a delayed cause, such as the Istikharah prayer, the prayer for Ihram, the prayer for a need (hajah), the prayer before leaving the house, or the prayer before execution; because their causes occur after the prayer itself.' And Allah the Exalted knows best."