What is the ruling on swimming while fasting?
Swimming while fasting is disliked (makruh) due to the risk of water entering the body cavity (jauf) through the nose, ears, or mouth, which would break the fast.
Ramadan is a month of tasbeeh (glorifying Allah), not Sibaha (swimming).
What is the Islamic ruling on the Udhiyah (sacrificial offfering)?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
The Udhiyah (sacrificial offering) is a Confirmed Sunnah (Sunnah Mu’akkadah) for every adult Muslim of sound mind who possesses the financial means, whether they are a resident, a traveler, or a pilgrim (Haj). This is based on the statement of the Prophet ﷺ: 'When the ten days [of Dhu al-Hijjah] begin and one of you desires to offer a sacrifice, let him not touch [cut] anything of his hair or skin' [Narrated by Muslim].
The point of evidence (Wajh al-Dalalah) here is that the Prophet ﷺ linked the sacrifice to the individual's will and desire by saying, 'and one of you desires.' This indicates that it is not obligatory (Wajib); had it been mandatory, he would have simply said, 'let him not touch his hair until he sacrifices' [without making it conditional upon desire].
Furthermore, it is narrated that Abu Bakr and Umar (may Allah be pleased with them both) would sometimes refrain from offering the sacrifice out of fear that people might mistakenly view it as an obligatory duty [Narrated by al-Bayhaqi and others with a good (Hasan) chain of transmission]. And Allah the Exalted knows best.
Is it valid to have Suhoor before sleeping, even if it is before midnight?
Suhoor refers to the pre-dawn meal eaten after midnight to help a Muslim endure fasting. The closer it is to Fajr, the better.
The Prophet ﷺ said: "My Ummah will remain upon goodness as long as they hasten to break the fast and delay Suhoor." [Narrated by Ahmad]
This is because delaying Suhoor makes it more effective in providing strength for worship. However, if there is a risk of Fajr entering while eating, one should refrain from Suhoor out of caution.
The Prophet ﷺ said: "Leave what makes you doubt for what does not make you doubt." [Narrated by Al-Tirmidhi]
Is it permissible to eat from an Udhiyah slaughtered on behalf of a deceased person?
Praise be to Allah, and prayers and peace be upon our Master the Messenger of Allah.
It is permissible to eat from the sacrifice (uḍḥiyyah) that is offered on behalf of a deceased person. This is the madhhab (school of thought) of the Hanbalis. In this case, the heirs take the place of the deceased as if he were alive, with the same rights to eat from it, give it in charity, and offer it as a gift.
It is stated in Maṭālib Uli al-Nuhā (Vol.2/P.472): "Offering a sacrifice on behalf of a deceased person is better than offering one on behalf of a living person, because the deceased is unable (to perform deeds) and is in need of reward. It is to be treated like a sacrifice on behalf of a living person in terms of eating, giving charity, and giving gifts." And Allah Almighty knows best.