What is the ruling of Islamic Law if the follower (maʾmūm) stands up for the third rakʿah out of forgetfulness while the imam has sat for the middle tashahhud?
All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
If the imam sits for the tashahhud while the follower (maʾmūm), out of forgetfulness, stands up for the third rakʿah, he is obliged to return to his sitting position, since following the imam is obligatory. In this case, no prostration of forgetfulness (sujūd al-sahw) is required of him. If, however, he fails to return, his prayer is rendered invalid.
Shaykh al-Islām Imām Zakariyyā al-Anṣārī, may Allah have mercy upon him, states: "If the follower stands up alone out of forgetfulness, he is obliged to return, since following the imam is obligatory... If he does not return, his prayer is rendered invalid, due to his departure from what is obligatory." [Asnā al-Maṭālib,Vol.1/P.190] And Allah the Almighty knows best.
What do you say about someone who stays up all night on Laylat al-Qadr but misses Fajr prayer?
Such a person has deprived themselves of a great reward. Performing obligatory acts is more beloved to Allah than voluntary acts. Fajr prayer is an obligation, and performing it in congregation is equivalent to worshiping for the entire night. So how can someone neglect it while striving for voluntary prayers?!
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.
How is the Night Prayer (Qiyam al-Layl) performed?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
Night Prayer (Qiyam al-Layl) refers to the voluntary (Nafl) prayers performed by a person after the Sunset prayer (Maghrib) and before the Dawn prayer (Fajr). As for Tahajjud, it is the voluntary prayer performed during the night specifically after waking up from sleep, as an act of devotion to Allah. Allah the Exalted says {what means}: "And from [part of] the night, pray with it [i.e., recitation] as additional worship for you." (Al-Isra/79). Thus, in terms of reward,Tahajjud is superior to voluntary prayers performed before sleeping. And Allah the Exalted knows best.