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.
Does passing wind, from the anus without a smell, invalidate prayer?
If a person is certain of having passed wind even if it was with no smell, then both his/her ablution and prayer are invalidated, thus he/she should remake ablution and re-perform prayer.
What is the ruling on someone who curses the religion or commits an act of disbelief during the day in Ramadan?
Whoever apostatizes (leaves Islam) while fasting, their fast is invalid. Cursing the religion is an act of apostasy (may Allah protect us from it). Such a person must return to Islam by pronouncing the Shahadah (testimony of faith), seek Allah’s forgiveness, refrain from eating and drinking for the rest of the day, and make up for that day’s fast later.
What is the ruling of Islam on swearing by Allah without intending to take an actual oath?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If someone swears by Allah without intending to take an actual oath, and without the firm resolve to bind themselves to it, then there is no sin or expiation (Kaffarah) required of them. Allah the Exalted says {what means}: 'God will not call you to account for thoughtlessness in your oaths, but for the intention in your hearts; and He is Oft-forgiving, Most Forbearing.' [Al-Baqarah/225]. However, a Muslim should avoid swearing oaths excessively so that their tongue does not become accustomed to it. Allah the Exalted says {what means}: 'And make not God’s (name) an excuse in your oaths against doing good, or acting rightly, or making peace between persons; for God is One Who heareth and knoweth all things.
' [Al-Baqarah/224]. And Allah the Exalted knows best."