What is the wisdom behind the legislation of fasting?
Fasting is a divine school from which the believer learns much and trains in virtues that may be needed in life. Among these virtues is patience, as it is the month of patience. Fasting also teaches honesty and consciousness of Allah in both private and public, for there is no observer over the fasting person in abstaining from lawful pleasures except Allah alone.
Fasting strengthens willpower, sharpens determination, and nurtures mercy and compassion among the servants of Allah. It is a struggle against the self, a restraint of desires, a purification of the soul, and a cultivation of goodness.
The Prophetﷺ said: "Allah, the Almighty, said: ‘Every deed of the son of Adam is for him, except for fasting; it is for Me, and I shall reward for it. Fasting is a shield. So when one of you is fasting on a day, let him not engage in obscene speech or raise his voice in anger. If someone insults him or fights him, let him say: I am a fasting person. By Him in whose hand is the soul of Muhammad, the breath of the fasting person is more pleasant to Allah than the fragrance of musk.’" [Bukhari and Muslim]
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 are the categories of the livestock permissible for Udhiyah?
Praise be to Allah, and peace and blessings be upon the Messenger of Allah.
The Udhiyah (sacrificial offering) is not valid except from Al-An’am (livestock), which are: camels, cattle, and sheep/goats. Allah the Almighty says {what means}: "And for every nation We have appointed a rite [of sacrifice] that they may mention the name of Allah over what He has provided for them of beast-livestock." [Al-Hajj/34]
The best of them are camels, then cattle, then sheep/goats. A sacrifice of a camel or a cow avails for seven people. Jabir (may Allah be pleased with him) said: "We sacrificed with the Messenger of Allah (peace and blessings be upon him) in the year of Al-Hudaybiyah a camel for seven and a cow for seven." [Narrated by Muslim] And Allah the Almighty knows best.
What is the ruling on preparing food for someone who is not fasting in Ramadan?
It is forbidden to prepare food for someone who is breaking their fast without a valid excuse in Ramadan.
Doing so would be assisting in sin, and assisting in sin is itself a sin.
Allah says {what means}: "but help ye not one another in sin and rancour" [Al-Mai`dah/2]