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 the follower`s prayer if the Imam stands for a fifth rak`ah?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If the Imam stands up for an extra unit (rak‘ah) of prayer out of forgetfulness, he must return to the sitting position as soon as he remembers, and he should perform the prostration of forgetfulness (Sujud al-Sahw). It is the duty of the congregants (Ma’mumin) behind him to remind him. However, if the Imam is in a state of doubt regarding the extra unit (and not certainty), it is not permissible for him to return.
As for the congregants: anyone who is certain that the Imam has stood for an extra unit is forbidden from following him. In this case, the follower has two choices: either intend to separate from the Imam (Mufaraqah) and finish the prayer alone, or wait for the Imam in the sitting position and perform the final salams with him—the latter being the preferred option. If a follower knowingly follows the Imam into an extra unit, their prayer becomes invalid. However, if a follower is in doubt and not certain of the mistake, they must continue following the Imam, as the Imam was appointed to be followed.
It is stated in Al-Majmu’ (Vol.4/P.145): 'If [the Imam] stands for a fifth rak‘ah, the follower should not follow him, even if it is assumed that the Imam might have omitted a pillar from a previous unit; because if the reality is known, following him is impermissible since the follower has certainly completed their own prayer. Even if the follower had missed a previous unit (Masbuq) or was in doubt about performing a pillar like the Fatihah, and the Imam stood for the fifth, it is not permissible for the latecomer to follow him in it. This is because we know that this unit is not counted for the Imam and that he is mistaken in performing it.' And Allah the Exalted knows best.
What is the ruling of Islamic Law if the follower (maʾmūm) stands up for the third rakʿah out of forgetfulness while the imam has sat for the middle tashahhud?
All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
If the imam sits for the tashahhud while the follower (maʾmūm), out of forgetfulness, stands up for the third rakʿah, he is obliged to return to his sitting position, since following the imam is obligatory. In this case, no prostration of forgetfulness (sujūd al-sahw) is required of him. If, however, he fails to return, his prayer is rendered invalid.
Shaykh al-Islām Imām Zakariyyā al-Anṣārī, may Allah have mercy upon him, states: "If the follower stands up alone out of forgetfulness, he is obliged to return, since following the imam is obligatory... If he does not return, his prayer is rendered invalid, due to his departure from what is obligatory." [Asnā al-Maṭālib,Vol.1/P.190] And Allah the Almighty knows best.
When is the prayer considered *adāʾ* (performed within its time): upon rising from the bowing (*rukūʿ*), or after rising from the prostration (*sujūd*)?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Whoever catches one complete rakʿah within the prayer's time has caught the prayer as an on-time (adāʾ) prayer. The rakʿah is complete when the worshipper raises his head from the second prostration (sajdah), even if he has not yet reached the degree of standing in which the recitation is valid.
It is stated in Nihāyat al-Muḥtāj (Vol.1/p.378): "What is meant by the rakʿah is the completion of all of it, with its two prostrations." End quote.
And in Ḥāshiyat al-Shabrāmallisī: "(His saying: 'a rakʿah') means that he raises his head from the second prostration, even if he has not reached the degree in which the recitation is valid." And Allah Almighty knows best.
________________________________________
Note on terminology: Adāʾ refers to performing the prayer within its prescribed time, as opposed to qaḍāʾ (making it up after its time has ended).