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 of Islamic Law on performing prayer on the upper floors of al-Masjid al-Ḥarām?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
Facing the actual structure of the Ka‘bah (‘ayn al-Ka‘bah) is one of the conditions for the validity of the prayer. The scholars have clarified what is meant by "the actual structure of the Ka‘bah."
Imam ash-Sharwānī (raḥimahullāh) said: "What is meant by its ‘ayn (actual structure) is its physical body, or the airspace directly aligned with it — if the person praying is not inside it. But if he is inside it, then the airspace alone does not suffice; rather, the actual physical structure must be faced, such that even if he faces a projecting part of it measuring roughly two-thirds of a dhirā‘ (cubit) or more, this would be sufficient." [Ḥāshiyat ash-Sharwānī ‘alā Tuḥfat al-Muḥtāj, Vol.1/P.484]
Sheikh al-Qulyūbī (raḥimahullāh) said: "Unlike one who prays outside it — i.e., outside the Ka‘bah — for him the airspace (directly above it) suffices, even if he is higher than it, or even if he is at the location where it (hypothetically) has been demolished." [Ḥāshiyat al-Qulyūbī ‘alā Sharḥ al-Minhāj, Vol.1/P.154]
Accordingly, the prayer is valid on the upper floors of al-Masjid al-Ḥarām, even though these floors are higher than the roof of the Ka‘bah itself. And Allah, the Exalted, knows best.
What is the ruling of Islamic Law on performing ṭawāf on the upper floors of al-Masjid al-Ḥarām, given that these floors are situated above the level of the Ka‘bah, and that the one performing ṭawāf passes by certain barriers, such as pillars and walls, during the ṭawāf?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
There are numerous conditions for the validity of ṭawāf (circumambulation around the Ka‘bah), among them: that the one performing ṭawāf be inside the Masjid (al-Masjid al-Ḥarām) — even if the Masjid has been expanded, so long as the expansion does not extend out into al-ḥill (land outside the sanctuary boundaries). It suffices for the ṭawāf to be performed in the airspace of the Masjid or upon its roof, even if that roof is higher than the Ka‘bah (the House) itself.
Al-Khaṭīb ash-Shirbīnī (raḥimahullāh) said: "It [ṭawāf] is valid upon the roof of the Masjid, even if the roof of the Masjid is higher than the House — just as prayer [is valid] upon Mount Abū Qubays despite its elevation above the House. This is the relied-upon (mu‘tamad) position." [Mughnī al-Muḥtāj, Vol.2/P.246]
The validity of the tawaf isn`t affected by the pillars and walls standing between the one performing ṭawāf and the House, since the condition is only that the person performing ṭawāf be within the boundaries of the Masjid and outside the boundaries of the Ka‘bah itself.
Ash-Shirbīnī said: "It [ṭawāf] is valid inside the Masjid, even if it is expanded, and even if a barrier stands between the one circumambulating and the House — such as a water-supply structure (saqāyah) or pillars (sawārī)." [Mughnī al-Muḥtāj, Vol. 2/P.246]
Accordingly, ṭawāf performed on the upper floors is valid, and the presence of barriers such as pillars and walls during the ṭawāf does not affect its validity. And Allah, the Exalted, knows best.
What is the ruling on eating and drinking at night after making the intention? Is it necessary to renew the intention?
Eating and drinking at night, even after making the intention (for the next day), does not affect the fast, and it is not necessary to renew the intention after eating and drinking.