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 supplicating in Qunoot, at times of affliction, during obligatory and voluntary prayer a Sunnah, and should it be done before Rukoo` (bowing), or after it?
At times of affliction, it is a Sunnah that Muslims supplicate in Qunoot after the final Rukoo` of each obligatory, or voluntary prayer as individuals, or in congregation.
What is the ruling on swallowing saliva while fasting?
It is permissible for a fasting person to swallow their saliva because avoiding it would cause undue hardship and excessive strictness in religion. Islam discourages such excessiveness since Allah the Almighty intends ease for His followers and does not intend to put them in hardship.
What is the ruling on the prayer of one who said "Subḥāna Rabbiya al-ʿAẓīm" in prostration (*sujūd*) and forgot to correct it?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Saying “Subḥāna Rabbiya al-ʿAẓīm” in bowing (rukūʿ) and “Subḥāna Rabbiya al-Aʿlā” in prostration (sujūd) is one of the hayʾāt (non-essential sunnahs) of the prayer. Whoever omits it, whether deliberately or by forgetfulness, or replaces it with another remembrance (dhikr), his prayer is valid and he does not perform sujūd al-sahw. Shaykh al-Islām Imam al-Nawawī (may Allah have mercy on him) said: “Our school holds that one does not prostrate for omitting the audible or silent recitation, the tasbīḥ, and the rest of the hayʾāt.” [al-Majmūʿ, Vol.4/p.127]
If he performs sujūd al-sahw for something that does not call for it, his prayer is invalidated, because he introduced a prostration of forgetfulness without a cause, and he must repeat the prayer. The exception is one who did so out of forgetfulness or ignorance, whether because he recently entered Islam or because he lives far from scholars; he is excused and his prayer is not invalidated.
It is stated in Mughni al-Muḥtāj (Vol.1/p.417): “It is stated in al-Anwār: If he does something that does not call for sujūd al-sahw, thinking that it does, and then prostrates, his prayer is not invalidated if he is ignorant because he recently entered Islam or because he is far from scholars.”
Since this issue is hidden from the laity, as it is among the subtleties of knowledge, and the laity 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 the issue is not invalidated. As for after knowing it, the prayer is invalidated.
Whoever realizes while still in the prayer that his prostration was out of place, it is sunnah for him to perform sujūd al-sahw. And Allah Almighty knows best.