What is the ruling on someone who eats or drinks while uncertain about the arrival of dawn, then later finds out that dawn had not yet broken?
If a person does this, their fast remains valid, as it is confirmed that they ate during the night. Similarly, if someone eats while uncertain and remains unsure whether they ate before or after dawn, their fast is still valid. This is based on the maxim of Sharia Law, which states: "Certainty is not removed by doubt." Certainty, here, is the presence of night, and the doubt concerns the arrival of dawn. Therefore, one relies on certainty and disregards doubt.
What is the ruling on vomiting, and does it invalidate ablution?
Vomit is impure (najis). Its exit is not considered one of the nullifiers of ablution. However, the mouth must be washed and purified from it, and any that gets on clothing or the body must be washed for prayer, because prayer is not valid with impurity present on the body or clothing. And Allah the Almighty knows best.
Is a woman`s prayer considered invalid if non-Mahrams (marriageable men) saw her offering it?
A woman`s prayer isn`t invalidated if non-Mahrams saw her offering it, but she had better pray in isolation.
What is the wisdom behind the legislation of fasting?
Fasting is a divine school from which the believer learns much and trains in virtues that may be needed in life. Among these virtues is patience, as it is the month of patience. Fasting also teaches honesty and consciousness of Allah in both private and public, for there is no observer over the fasting person in abstaining from lawful pleasures except Allah alone.
Fasting strengthens willpower, sharpens determination, and nurtures mercy and compassion among the servants of Allah. It is a struggle against the self, a restraint of desires, a purification of the soul, and a cultivation of goodness.
The Prophetﷺ said: "Allah, the Almighty, said: ‘Every deed of the son of Adam is for him, except for fasting; it is for Me, and I shall reward for it. Fasting is a shield. So when one of you is fasting on a day, let him not engage in obscene speech or raise his voice in anger. If someone insults him or fights him, let him say: I am a fasting person. By Him in whose hand is the soul of Muhammad, the breath of the fasting person is more pleasant to Allah than the fragrance of musk.’" [Bukhari and Muslim]