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.
Can someone who begins a voluntary fast break it?
It is preferable for someone who begins an act of worship not to break it.
Allah the Exalted has said {what means}: "and let not your [good] deeds come to nought!" [Muhammad/33].
However, if a person starts a voluntary fast (nafl) and needs to break it, they are going against what is preferable, but there is no sin upon them.
What is the wisdom behind the legislation of fasting?
Fasting is a divine school from which the believer learns much and trains in virtues that may be needed in life. Among these virtues is patience, as it is the month of patience. Fasting also teaches honesty and consciousness of Allah in both private and public, for there is no observer over the fasting person in abstaining from lawful pleasures except Allah alone.
Fasting strengthens willpower, sharpens determination, and nurtures mercy and compassion among the servants of Allah. It is a struggle against the self, a restraint of desires, a purification of the soul, and a cultivation of goodness.
The Prophetﷺ said: "Allah, the Almighty, said: ‘Every deed of the son of Adam is for him, except for fasting; it is for Me, and I shall reward for it. Fasting is a shield. So when one of you is fasting on a day, let him not engage in obscene speech or raise his voice in anger. If someone insults him or fights him, let him say: I am a fasting person. By Him in whose hand is the soul of Muhammad, the breath of the fasting person is more pleasant to Allah than the fragrance of musk.’" [Bukhari and Muslim]
A man led the people in prayer as imam, and at the end of the prayer he performed a prostration of forgetfulness (*sujūd al-sahw*) because he had omitted a short *sūrah* after al-Fātiḥah. What is the ruling on his prayer and that of those praying behind him?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
According to the Shāfiʿī school, it is sunnah to recite a sūrah after al-Fātiḥah in the prayer. One who omits it has a valid prayer, and no prostration of forgetfulness (sujūd al-sahw) is prescribed for omitting it. If someone performs sujūd al-sahw for its omission while knowing the ruling and remembering it, his prayer is invalidated. But one who is ignorant of the ruling, or who did so out of forgetfulness, his prayer is not invalidated, because this is among the matters that are obscure to people, and ignorance of it is not restricted to those who recently entered Islam.
Shaykh al-Islām al-Shams al-Ramlī said in Nihāyat al-Muḥtāj ilā Sharḥ al-Minhāj (Vol.2/p.70): “The remaining sunnahs are not compensated for by prostration, such as the remembrances (adhkār) of bowing and prostration, that is, the opening supplication (duʿāʾ al-iftitāḥ) and the sūrah, in accordance with the base rule, because they are not of the same nature as what has been reported [as compensable]. If one prostrates for any of them deliberately, his prayer is invalidated, unless he is excused due to ignorance. As for the objection raised that the ignorant person does not know that sujūd al-sahw is prescribed, and whoever knows it knows its place, this is refuted by denying such a necessary connection, for the ignorant person may hear only that sujūd al-sahw is prescribed before the salām, and so assume that it applies to every sunnah and is not restricted to its prescribed place.”
This is among the matters that are obscure, in which the mukallaf is excused for ignorance, as stated by al-Shabrāmallisī in his Ḥāshiyah ʿalā Nihāyat al-Muḥtāj (Vol.2/p.70).
However, if the imam prostrates, and the follower (maʾmūm) presumes that his imam’s prostration is for a reason for which one does not prostrate, it is not permissible to follow him in it, so long as the follower knows the ruling.
Accordingly, the prayer of one who did not recite a sūrah after al-Fātiḥah is valid, and sujūd al-sahw is not prescribed for it. Whoever prostrates out of ignorance or forgetfulness, his prayer is valid, because this is among the issues hidden from the general public. But whoever prostrates while knowing the ruling and remembering it, his prayer is invalidated. And Allah Almighty knows best.