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.
Is it obligatory to make up all missed prayers?
All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
Making up missed prayers (qaḍāʾ) is a sharʿī obligation, established by the practice of the Prophet ﷺ himself — when the disbelievers preoccupied him on the Day of the Trench and he missed the ʿAṣr prayer, he made it up afterward. This is further affirmed by the ḥadīth: "Fulfil what you owe to Allah, for Allah is most deserving of being fulfilled." (Reported by al-Bukhārī.)
Accordingly, a person who has missed prayers should set aside his voluntary and Sunnah prayers and replace them with make-up prayers in their stead. There is no objection to making up one missed prayer alongside each obligatory prayer that is performed — praying the equivalent missed prayer together with each current obligatory prayer as a practical and manageable way of gradually clearing one's debt of missed prayers. And Allah the Almighty knows best.
What is the ruling on istibra' and how is it performed?
Istibra' (cleansing from urine) is recommended. It is for a person to ensure that nothing remains of urine in its passage before performing istinja'. Its method is: to clear the throat (or cough slightly), shake the penis (meaning to pass fingers along it to expel any remaining urine if needed), and walk a few steps to the extent that one thinks nothing of urine remains if walking is needed. Each person knows his own nature best. The preferred opinion is that this differs among people. The objective is for one to think that nothing remains in the urinary passage that he fears will exit later. And Allah the Almighty knows best.
What are the nullifiers of fasting?
1. Anything that enters the body cavity intentionally, even in small amounts, through an open passage such as the mouth, nose, ears, front, or back private parts.
2. Intentional vomiting.
3. Sexual intercourse.
4. Masturbation.
5. Menstruation and postnatal bleeding.
6. Insanity.
7. Apostasy.
8. Fainting if it lasts for the entire day.