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.
What is the ruling on speaking while relieving oneself?
It is disliked for one relieving himself to speak while doing so, except out of necessity. And Allah the Almighty knows best.
Someone wiped over his shoes after wearing them in a state of purity, then took them off and prayed without them?
Ablution is not invalidated by taking off leather socks or shoes after wiping over them. However, whoever takes them off after wiping must wash his feet only. If he prayed without washing his feet, he must wash his feet and repeat the prayer. And Allah the Almighty knows best.
What is the virtue of Laylat al-Qadr?
It is enough to know its great status that Allah revealed an entire surah about it—Surah Al-Qadr. Moreover, the Quran was first revealed on this night.
Allah says {what means}:
"We have indeed revealed this (Message) in the Night of Power: And what will explain to thee what the night of power is? The Night of Power is better than a thousand months. Therein come down the angels and the Spirit by Allah's permission, on every errand: Peace!... This until the rise of morn!" [Al-Qadr/1-5]
The Prophet ﷺ taught us to observe I‘tikaf in the last ten nights of Ramadan, seeking Laylat al-Qadr. Whoever worships Allah and revives this night will receive the reward of worshiping for a thousand months—excluding Laylat al-Qadr itself.