What is required of one who doubts the number of rakʿāt during prayer?
All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
If a person doubts the number of rakʿāt he has prayed, he should build upon the lesser number, as that is what he is certain of. He should then perform the prostration of forgetfulness (sujūd al-sahw) before the final salām at the end of the prayer. ʿAṭāʾ ibn Yasār narrated that the Messenger of Allah ﷺ said: "When any one of you is in doubt during his prayer and does not know whether he has prayed three rakʿāt or four, let him pray one more rakʿah and then perform two prostrations while seated before the salām. If the rakʿah he prayed was a fifth, these two prostrations will make it even; and if it was the fourth, then the two prostrations serve as a humiliation for the devil." (Reported by Abū Dāwūd.)
It is stated in al-Muqaddimah al-Ḥaḍramiyyah — one of the foundational texts of the Shāfiʿī school: "If one doubts whether he has prayed three rakʿāt or four, he is obliged to build upon the lesser number."
However, if such doubt recurs repeatedly and reaches the level of obsessive whispering (waswasah), he should not build upon the lesser number in that case — rather, he should build upon the greater number. And Allah the Almighty knows best.
Where should a woman following her husband or another man in prayer stand?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If a single woman prays with a man—whether she is his wife or a non-mahram (Ajnabiyyah)—the Sunnah is for her to stand behind the Imam and be shielded by him. If the Imam is leading both a man and a woman, the man should stand to the Imam's right, and the woman should stand behind the male follower (Muqtadi). In this way, she is shielded from the Imam by the male follower and remains at a distance from the follower and his line of sight. And Allah the Exalted knows best.
If a woman becomes pure from menstruation shortly after Fajr in Ramadan, what is required of her?
If a woman becomes pure (from menstrual period) after Fajr, even shortly after, it is recommended (but not obligatory) for her to refrain from eating and drinking for the rest of the day. However, she must make up for that day after Ramadan.
She will be rewarded for both refraining from eating (imsak) and making up the fast (qada) since she was menstruating for part of the day.
What should a person do if they suffer from an incurable illness that prevents them from fasting?
A person who has an illness that is not expected to be cured and prevents them from fasting must feed a needy person one mudd (600 grams) of food (such as wheat or rice) for each missed day instead of fasting.
Allah Almighty says {what means}: "and [in such cases] it is incumbent upon those who can afford it to make sacrifice by feeding a needy person." [Al-Baqarah/184].