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 is uncertain whether he omitted one of the ab‘āḍ of the prayer, such as being uncertain whether he omitted the first tashahhud?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
The ab‘āḍ include the middle tashahhud and the qunūt in Fajr prayer — for which sujūd as-sahw (the prostration of forgetfulness) is prescribed if left out. Whoever is uncertain, during the prayer, whether he omitted one of these elements, should proceed on the assumption that he did not perform it, and should perform sujūd as-sahw accordingly.
It is stated in ‘Umdat as-Sālik (p. 63): "If he is uncertain... whether he omitted a specific ab‘āḍ element, or whether he performed sujūd as-sahw, or whether he prayed three or four rak‘ahs — he proceeds on the assumption that he did not do it, and performs sujūd as-sahw."
The original principle (al-aṣl) for someone uncertain about [having performed] the first tashahhud is that he assumes he did not perform it. And Allah, the Exalted, knows best.
Which is better in night prayer: long standing (Qiyam) or long prostration (Sujood)?
Long standing (Qiyam) is better in prayer. However, a Muslim should also observe tranquility and composure in their prayer.
Is the multiplication of reward for prayer in the sanctuaries of Makkah and Madīnah limited to the obligatory prayer, or does it include the voluntary prayer as well?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
There is no difference between the obligatory (farḍ) and the voluntary (nafl) prayer in the ḥadīth on the multiplication of reward in the two Sanctuaries (al-Ḥaramayn), because the authentic ḥadīths are unrestricted and general in wording. It is therefore not permissible to restrict or specify them without evidence. Shaykh al-Islām Imam al-Nawawī (may Allah have mercy on him) said: “Our school holds that the superiority of prayer in the two mosques of Makkah and Madīnah is not limited to the obligatory prayer, but includes both the obligatory and the voluntary.” [al-Majmūʿ Sharḥ al-Muhadhdhab, Vol.8/p.476]
The multiplication of reward applies to whoever prays in al-Masjid al-Ḥarām or anywhere within the sanctuary (ḥaram). Al-Shirwānī (may Allah have mercy on him) said: “The more correct view according to al-Nawawī is that the multiplication of the prayer’s reward covers the whole sanctuary, and is not limited to the mosque, nor to Makkah itself.” [Tuḥfat al-Muḥtāj with the glosses of al-Shirwānī and al-ʿAbbādī, Vol.10/p.95]. And Allah Almighty knows best.