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 on istibra' and how is it performed?
Istibra' (cleansing from urine) is recommended. It is for a person to ensure that nothing remains of urine in its passage before performing istinja'. Its method is: to clear the throat (or cough slightly), shake the penis (meaning to pass fingers along it to expel any remaining urine if needed), and walk a few steps to the extent that one thinks nothing of urine remains if walking is needed. Each person knows his own nature best. The preferred opinion is that this differs among people. The objective is for one to think that nothing remains in the urinary passage that he fears will exit later. And Allah the Almighty knows best.
Is it a condition for the mosque where I‘tikaf is performed to hold Jumu‘ah prayers?
No, it is not a condition for the mosque where I‘tikaf is performed to have Jumu‘ah prayers. However, if a person vows to perform continuous I‘tikaf, and Jumu‘ah occurs within that period, then they must observe I‘tikaf in a mosque where Jumu‘ah is held so that they do not break their continuity by leaving for Friday prayer.
When is the prayer considered *adāʾ* (performed within its time): upon rising from the bowing (*rukūʿ*), or after rising from the prostration (*sujūd*)?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Whoever catches one complete rakʿah within the prayer's time has caught the prayer as an on-time (adāʾ) prayer. The rakʿah is complete when the worshipper raises his head from the second prostration (sajdah), even if he has not yet reached the degree of standing in which the recitation is valid.
It is stated in Nihāyat al-Muḥtāj (Vol.1/p.378): "What is meant by the rakʿah is the completion of all of it, with its two prostrations." End quote.
And in Ḥāshiyat al-Shabrāmallisī: "(His saying: 'a rakʿah') means that he raises his head from the second prostration, even if he has not reached the degree in which the recitation is valid." And Allah Almighty knows best.
________________________________________
Note on terminology: Adāʾ refers to performing the prayer within its prescribed time, as opposed to qaḍāʾ (making it up after its time has ended).