What is the ruling of Islamic Law on sitting between the two prostrations, and what is the ruling on the dhikr recited during it?
Praise be to Allah, and peace and blessings upon our master, the Messenger of Allah.
Sitting between the two prostrations (al-jalsah bayna al-sajdatayn) is one of the pillars (arkān) of the prayer, while the dhikr recited during it is Sunnah according to the Shāfi'ī scholars. It is recommended (mustahabb) to say what was narrated from Ibn 'Abbās (may Allah be pleased with him), who said: "The Messenger of Allah (peace and blessings be upon him) used to say between the two prostrations in the night prayer: 'Rabbi ighfir lī, warhamnī, wajburnī, warzuqnī, warfa'nī' (My Lord, forgive me, have mercy on me, make good my deficiencies, provide for me, and raise me)." If one were to say a different supplication instead, such as "Rabbi ighfir lī" (My Lord, forgive me), the prayer would still be valid.
If the worshipper omits this dhikr between the two prostrations, whether intentionally or out of forgetfulness, their prayer remains valid and nothing is required of them, though they miss the reward of following the Sunnah. Leaving it out does not necessitate the prostration of forgetfulness (sujūd al-sahw).
It is stated in Hāshiyat al-Bājūrī 'alā Sharḥ Ibn Qāsim 'alā Matn Abī Shujā' (Vol.1/P.298): "The eleventh — i.e., of the eighteen pillars — his statement: 'sitting between the two prostrations,' meaning even in a supererogatory (nafl) prayer... his statement: 'with the supplication that has been narrated concerning it,' meaning: 'Rabbi ighfir lī, warhamnī, wajburnī, warfa'nī, warzuqnī, wahdinī, wa 'āfinī' (My Lord, forgive me, have mercy on me, make good my deficiencies, raise me, provide for me, guide me, and grant me well-being). Al-Ghazālī added: 'wa'fu 'annī' (and pardon me). Al-Mutawallī also added: 'Rabbi hab lī qalban taqiyyan, naqiyyan min al-shirk, bariyyan lā kāfiran wa lā shaqiyyan' (My Lord, grant me a heart that is God-fearing, pure from associating partners with You, innocent, neither disbelieving nor wretched)."And Allah, the Most High, 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.
Is it valid to perform Tarawih prayer at home?
It is Sunnah for a Muslim to perform Tarawih prayer in congregation at the mosque.
However, if a person sometimes prays it at home in congregation with their family for a valid reason, there is no harm in doing so.
Does Laylat al-Qadr move between the nights of Ramadan?
Laylat al-Qadr is definitely in Ramadan, and it is most likely in the last ten nights, especially on the odd-numbered nights.
For this reason, the Prophet ﷺ commanded observing worship in the last ten nights, and he himself used to dedicate those nights to worship. Many people put special effort into the 27th night of Ramadan, and they are rewarded in any case, whether they actually coincide with Laylat al-Qadr or not, because worshiping on any night of Ramadan carries great rewards.