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 preparing food for someone who is not fasting in Ramadan?
It is forbidden to prepare food for someone who is breaking their fast without a valid excuse in Ramadan.
Doing so would be assisting in sin, and assisting in sin is itself a sin.
Allah says {what means}: "but help ye not one another in sin and rancour" [Al-Mai`dah/2]
What is the ruling on the ablution of one who washes his arms from the wrist to the elbows?
In the school of Imam al-Shafi'i (may Allah have mercy on him), washing the arms (hands) is achieved by washing the arms completely, from the fingertips to the elbows. Washing only the palms at the beginning is insufficient, as washing them at the beginning is a Sunnah, but after washing the face, it becomes obligatory (fard). The person performing ablution must wash his palms along with the arms after washing the face. If he does not wash his palms, his ablution is invalid and not correct. 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.