What is the ruling on X-ray imaging while fasting in Ramadan?
X-ray imaging itself does not break the fast. However, if a person ingests a contrast agent or medication to enhance the imaging process through an open passage to the body cavity (jauf)—such as the mouth or rectum—then their fast is invalidated.
What is the ruling on the use of an inhaler by a *muḥrim* (a person in the state of *iḥrām*)? [An inhaler is a medicinal device used for inhalation, containing various herbal ingredients.]؟
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
It is permissible for the muḥrim (a person in the state of iḥrām) to use incense (bakhūr), sprays, and inhalers that contain aromatic substances for the purpose of treatment, because the intention is medical treatment, not the use of perfume (taṭayyub). No expiation (fidyah) is required of him for doing so.
It is stated in Ḥāshiyat al-Bujayrimī ʿalā al-Khaṭīb (Vol.2/p.455): “That which is intended for eating or for medical treatment, even if it has a pleasant scent, such as apples, spikenard (sunbul), and the various fragrant spices such as mastic (muṣṭakā), is not forbidden, and no fidyah is due for it, because what is intended for eating or treatment carries no fidyah.”. And Allah Almighty knows best.
Is it permissible to sleep before the time of the Fajr prayer begins, with the intention of waking up shortly afterward?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
It is permissible for a Muslim to sleep before the time of the Fajr prayer begins, intending to wake up and perform the prayer, by setting an alarm or asking someone to wake him. What is to be avoided is that a person sleeps while he predominantly assumes that he will not wake up for the prayer.
If he does not wake up until the time of the prayer has ended, he must make it up. It is recommended that he hasten to make it up as soon as he wakes, and likewise recommended that he make up its sunnah along with it.
It is stated in al-Majmūʿ by Shaykh al-Islām Imam al-Nawawī (may Allah have mercy on him): “Whoever was obliged to pray and did not pray until the time passed must make it up, because of the saying of the Prophet (peace and blessings be upon him): ‘Whoever sleeps through a prayer or forgets it, let him pray it when he remembers it.’ It is recommended that he make it up immediately, because of the ḥadīth we have mentioned. If he delays it, that is permissible, because it is reported that the Prophet (peace and blessings be upon him) missed the Fajr prayer and did not pray it until he had left the valley. Had it been required immediately, he would not have delayed it. Abū Is-ḥāq said: If he left it without a valid Sharia excuse, he must make it up immediately, because he was negligent in delaying it.”
It is therefore the duty of every Muslim to keep the prayer in its proper time, seeking help from Allah the Exalted and striving against the self to do so. And Allah Almighty knows best.
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.