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.
What is the ruling on someone who intends to travel to Jeddah for two days — must he enter iḥrām from his place of residence [i.e., before passing the mīqāt]?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
Whoever is firmly resolved in his intention to perform ‘Umrah before setting out on his journey, it is unlawful for him to pass beyond his country's mīqāt (the designated boundary point for entering the state of iḥrām) without entering iḥrām. If he does so, he must return to the mīqāt to enter iḥrām from there, provided he has not yet begun performing the rites of the pilgrimage — in which case nothing further is required of him. However, if he does not return, he must offer a sacrifice (sheep/goat), to be distributed among the poor of the Ḥaram.
It is stated in at-Tanbīh fī al-Fiqh ash-Shāfi‘ī (p. 71): "Whoever, intending to perform the rites [of ‘Umrah or Ḥajj], passes beyond the mīqāt and enters iḥrām only after it, must offer a sacrifice. However, if he returns to the mīqāt before beginning any of the rites, the sacrifice is waived from him."
Accordingly: whoever is firmly resolved in his intention to perform ‘Umrah before setting out on his journey must enter iḥrām at the mīqāt of his country through which he passes. Whoever fails to do so, passing beyond the mīqāt without entering iḥrām, and does not return, has sinned, and must repent to Allah, the Exalted; and he must offer a sacrifice, to be distributed among the poor of the Ḥaram. And Allah, the Exalted, knows best.
What is the ruling on bypassing a nearby mosque for a distant one?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If a distant mosque has a larger congregation (Jama‘ah) while the congregation in the nearby mosque is smaller, and the congregation in the nearby mosque is not adversely affected by the worshiper's absence, then it is better for him to pray in the distant mosque with the larger congregation. However, if the congregation in the nearby mosque would be affected by his absence—such as if he is its Imam, or if his presence encourages others to attend—then praying in the nearby mosque is better. This ensures that the congregation is established in two different locations within the community. This is based on the saying of the Prophet ﷺ: 'A man's prayer offered with another man is purer than his prayer which he offers alone, and his prayer with two men is purer than his prayer with one and if they are more (in number), it is more beloved to Allah, the Mighty the Majestic' (Narrated by Ahmad, Abu Dawood, and An-Nasa'i). And Allah the Exalted knows best.
What is the ruling on making up the regular *rawātib* (sunnah) prayers together with a missed obligatory prayer?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
It is obligatory to make up (qaḍāʾ) a missed obligatory prayer (farḍ). As for the timed supererogatory prayers (al-sunan al-muʾaqqatah) or the regular rawātib prayers, it is recommended (mandūb) to make them up, even if a long time has passed. Ibn Ḥajar (may Allah have mercy on him) said in his Fatāwā: "It is established in our school that it is sunnah to make up the timed voluntary prayers, by night or by day, even if congregation is not prescribed for them, whether much time has passed or little."
Accordingly, it is recommended to make up the sunan together with the obligatory prayer. And Allah Almighty knows best.
________________________________________
Note on terminology: Al-nawāfil al-muʾaqqatah (timed voluntary prayers) refers to supererogatory prayers tied to a specific time or cause, such as the rawātib (regular prayers before and after the obligatory ones), Duha, and the like. The ruling given here reflects the Shāfiʿī position.