What is the recommended supplication (Du'a) upon breaking the fast, and is it recited before or after breaking it?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
It is recommended (Mustahabb) for a fasting person to recite upon breaking the fast—that is, immediately after eating or drinking—the supplication: "Allahumma laka sumtu wa 'ala rizqika aftartu" (O Allah, for You I have fasted, and with Your provision I have broken my fast).
This is because our master, the Prophet (peace and blessings be upon him), used to say this. The narration was recorded by Abu Dawud with a good (Hasan) chain of transmission, albeit in a Mursal form (a narration where a Successor reports directly from the Prophet). Shaykh al-Islam Imam Ibn Hajar al-Haytami (may Allah have mercy upon him) stated: "Its Mursal status is inconsequential, as it pertains to virtuous deeds (Fada'il); furthermore, it was connected (Mawsul) through another chain of transmission." [Tuhfat al-Muhtaj, Vol.3/P.425]
It is also recommended to recite: "Dhahaba al-dhama'u wa ibtallat al-'uruqu wa thabata al-ajru in sha' Allah" (The thirst has gone, the veins are moistened, and the reward is confirmed, if Allah wills).
This was recorded by Abu Dawud with a good (Hasan) chain. Our leading jurists (Imams) have explicitly stated that it is recommended for the fasting person to combine both supplications.
Imam al-Bajuri (may Allah have mercy upon him) stated:
"And his saying following his breaking of the fast—that is, it is recommended to say: 'O Allah, for You I have fasted, upon Your provision I have broken my fast, in You I have believed, to You I have submitted, and upon You I have relied. The thirst has gone, the veins are moistened, and the reward is confirmed, if Allah wills. O You of vast bounty, forgive me. Praise be to Allah Who aided me so that I fasted, and provided for me so that I broke my fast. O Allah, grant us success in fasting, enable us to stand in night prayer during it, and aid us in it while people sleep, and admit us to Paradise in peace.'" [Hashiyat al-Bajuri, Vol.1/P.562]
Furthermore, the fasting person may supplicate with whatever good he or she wishes, for the supplication of a fasting person is answered. Al-Bayhaqi recorded on the authority of Anas ibn Malik that the Messenger of Allah (peace and blessings be upon him) said: "Three supplications are not rejected: the supplication of a parent for his child, the supplication of a fasting person, and the supplication of a traveler." And Allah Almighty knows best.
Is it valid to have Suhoor before sleeping, even if it is before midnight?
Suhoor refers to the pre-dawn meal eaten after midnight to help a Muslim endure fasting. The closer it is to Fajr, the better.
The Prophet ﷺ said: "My Ummah will remain upon goodness as long as they hasten to break the fast and delay Suhoor." [Narrated by Ahmad]
This is because delaying Suhoor makes it more effective in providing strength for worship. However, if there is a risk of Fajr entering while eating, one should refrain from Suhoor out of caution.
The Prophet ﷺ said: "Leave what makes you doubt for what does not make you doubt." [Narrated by Al-Tirmidhi]
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.
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.