What is the ruling on tasting food while fasting?
Tasting food while fasting is disliked (makruh). However, if any part of the food reaches the body cavity (jauf), the fast becomes invalid.
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 permissible to offer mandatory prayer while sitting?
All perfect praise be to Allah, The Lord of The Worlds, and may His Peace and Blessings be upon our Prophet Muhammad and upon all of his family and companions. Standing up is a pillar in the mandatory prayer and the prayer is not valid without it unless one cannot do it. As for Nafila (supererogatory prayer), one can perform it in the state of sitting even if he/she can stand, but his/her reward is half the reward of the person who prays while standing if he/sh has no legal excuse for such an act. And Allah Knows Best.
What is the ruling on performing Tahajjud after the Witr?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
It is permissible for one who has prayed the Witr to perform voluntary (Nafl) prayers after it. However, it is preferable for the Witr to be the final prayer of the night. Therefore, if a person is confident that they will wake up during the night for Tahajjud, it is recommended for them to delay the Witr until after the Tahajjud. Conversely, if one fears they may not wake up, they should perform the Witr before sleeping.
Al-Khatib al-Shirbini (may Allah have mercy on him) stated: 'It is not disliked (Makruh) to perform Tahajjud after the Witr, but it is not recommended to do so intentionally.' [Mughni al-Muhtaj, Vol. 1/P.454]. And Allah the Exalted knows best."