The imam recited a verse containing a prostration of recitation (*sajdat al-tilāwah*) but did not prostrate. After the imam's *salām*, a follower (*maʾmūm*) performed a prostration of forgetfulness (*sujūd al-sahw*) because the imam had not performed the prostration of recitation. Is it permissible to go against the imam in this way?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
There is no sin on the imam if he omits the prostration of recitation (sujūd al-tilāwah), even deliberately. The maʾmūm (the one following the imam) is obliged to follow the imam in the prayer, so if the imam does not perform the prostration of recitation, it is not permissible for the follower to prostrate, because the imam is appointed only to be followed.
If the follower introduces a prostration after the imam’s salām but before his own salām, in a case where there is no prostration of forgetfulness (sujūd al-sahw), his prayer is invalidated if he knew it to be prohibited. Otherwise, he is excused on account of his ignorance and his prayer is not invalidated.
It is stated in Ḥāshiyat al-Imām al-Jamal ʿalā Fatḥ al-Wahhāb: “His statement: ‘So the omission of the hayʾāt (the non-essential sunnahs of the prayer) is not compensated for by prostration; if one prostrates for any of them deliberately, his prayer is invalidated, unless he is excused due to his ignorance.’”
Since this issue is one that is hidden from the laymen, as it is among the subtleties of knowledge, and the laymen are excused for ignorance of whatever is of such a nature, and their act of obedience is not invalidated because of it, it may be said that the prayer of one who has not acquired knowledge of this issue is not invalidated, with the necessity of learning the rulings remaining. As for after knowing it, the prayer is invalidated. And Allah Almighty knows best.
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 performing the Istikhara prayer after the Witr paryer?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
The Istikhara prayer (Prayer for seeking guidance) is a Sunnah. It consists of two units (rak’ahs) performed outside of the obligatory prayers, after which the person supplicates with the traditionally narrated du’a. It is permissible to perform it before or after the Witr prayer, as the Istikhara prayer is recommended at all times except during the disliked times—the periods in which prayer is prohibited. This is because its specific reason (the Istikhara and supplication) occurs after the prayer itself, and any prayer with a subsequent reason is not permitted during the prohibited times. It should be noted that the two rak’ahs of Istikhara are not fulfilled by performing only one rak’ah, nor by a prostration of recitation (Sajdat al-Tilawah), nor by a funeral prayer (Janazah). And Allah the Exalted knows best.
What is the ruling on doubting whether one or two prostrations were performed?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If a worshiper is in doubt regarding the number of units (rak'ahs) or prostrations (sajdahs) performed, he must build upon the minimum (i.e., assume the lower number) and perform the prostration of forgetfulness (Sujud al-Sahw) before the Salam at the end of the prayer. This is based on the report from ‘Ata’ ibn Yasar that the Messenger of Allah ﷺ said: 'When anyone of you is in doubt about his Salat (prayer) and does not know how many he has prayed, three or four (Rak'at) he should cast aside his doubt and base his prayer on what he is sure of. Then, he should perform two prostrations before Taslim (salutation). If he has prayed five Rak'at, they will make his Salat (prayer) an even number for him and if he has prayed exactly four, they (i.e. two prostrations) will be humiliation for the devil..' (Narrated by Abu Dawud).
It is stated in Al-Muqaddimah al-Hadramiyyah: 'If one doubts [whether he performed] a bowing (ruku’), a prostration, or a rak'ah, he must perform it and prostrate [for forgetfulness], even if the doubt is removed before the Salam—unless the doubt is removed before he performs what would potentially be an addition. Thus, if he doubts whether he prayed three or four, he is obligated to build upon the minimum.' And Allah the Exalted knows best.