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 forgetting an integral of the prayer?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
Whoever forgets an integral (Rukn) of the prayer and remembers it before reaching the equivalent point in the subsequent unit (Rak'ah), must return to it (i.e., perform it) and complete his prayer, then perform the prostration of forgetfulness (Sujud al-Sahw) at the end of his prayer. However, if he remembers it after reaching the equivalent point in the subsequent unit, the Rak'ah in which the integral was forgotten is invalidated, and the current unit takes its place; he then completes a full Rak'ah to compensate and performs the prostration of forgetfulness.
It is stated in Nihayat al-Muhtaj ila Sharh al-Minhaj (Vol.1/P.543): 'If he becomes certain at the end of his prayer, or after the Salam—provided the interval is not long according to custom and he has not stepped on an impurity—that he omitted a prostration from the final Rak'ah, he must perform it and repeat the Tashahhud, as his previous Tashahhud occurred before its proper place. If the omission was from a Rak'ah other than the final one, he must perform a full Rak'ah, because the deficient unit was completed by a prostration from the subsequent one, rendering the rest of that subsequent unit void.' And Allah the Exalted knows best.
What are the pillars of fasting?
The pillars of fasting are intention and abstaining from all nullifiers of fasting from dawn to sunset.
What is the ruling of Islamic Law on someone who wakes up in a state of janābah (major ritual impurity) near the very end of the prayer's designated time, during cold weather — should he heat water in order to perform ghusl, even though the prayer's time will expire as a result, or should he perform tayammum instead?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
If the water is cold, and cannot be used due to fear of harm that is not ordinarily tolerable, or that would result in illness, then in this case it becomes obligatory to heat the water — even if heating it causes the time for Fajr to expire — and no sin is incurred in doing so, due to his valid excuse. He may not resort to tayammum (dry ablution) instead, since water remains available [and merely needs to be heated].
Imam Shihāb ad-Dīn Aḥmad ar-Ramlī (raḥimahullāh) said: "He was asked regarding a person who, if he were to use cold water, would experience harm that permits tayammum, and who has access to something with which he could heat the water — but if he heats it, the prayer's time will expire. Is it obligatory for him to heat it even if the time expires, or should he pray with tayammum within the prescribed time? He answered that it is obligatory for him to heat the water, even if the time for that particular obligatory prayer expires." [Fatāwā ar-Ramlī, Vol.1/P.98]
Imam al-Bājūrī (raḥimahullāh) said in his Ḥāshiyah on Sharḥ Ibn Qāsim (Vol.1/P.173): "And if he fears [harm] from using cold water, and is currently unable to heat it, but knows of a place where firewood is available, such that if he were to go there he would not return until after the prescribed time has expired — what appears [to be the correct position] is that it is obligatory for him to go and seek the firewood, even if the time expires as a result, as this is the position ultimately settled upon by ar-Ramlī, and as related from him by Ibn Qāsim." And Allah, the Exalted, knows best.