Does undergoing an endoscopy during the day in Ramadan affect the validity of fasting?
Undergoing an endoscopic procedure during the day in Ramadan—whether through the mouth, nose, front private part, or back private part—invalidates the fast.
Whoever undergoes such a procedure must refrain from eating and drinking for the rest of the day out of respect for the sacred month and make up for that day after Ramadan.
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]
Is it valid to perform the obligatory prayer while sitting?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
Standing (Al-Qiyam) while having the ability to do so is one of the pillars (Arkan) of the prayer; the obligatory (Faridah) prayer is not valid without it. However, whoever is unable to stand may pray sitting down. As for voluntary (Nafilah) prayers, it is permissible to pray them sitting even if one is able to stand, but the one sitting receives half the reward of the one who prays standing. And Allah the Exalted knows best.
Does using a wet miswak while fasting break the fast?
A fasting person should ensure that the miswak is dry when using it.
However, if the miswak is slightly moist but does not release any liquid when squeezed, then its use does not break the fast.