What is the ruling of Islamic Law on the prayer of zawal?
All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
It is recommended (sunnah) to pray four rakʿāt — either with a single tasleem or as two separate sets of two rakʿāt — immediately following the sun's decline from its zenith (zawāl). This prayer is distinct from the regular Sunnah prayer of Ẓuhr (sunnat al-ẓuhr al-rātibah), as explicitly stated by the Shāfiʿī jurists.
It is mentioned in Nihāyat al-Muḥtāj: "The prayer of zawāl is offered after the sun's decline — so were one to perform it before that, it would not count. It consists of two or four rakʿāt and is distinct from the Sunnah of Ẓuhr, as is evident from the fact that it is mentioned separately after the regular Sunnah prayers, and it becomes a make-up prayer (qaḍāʾ) if a long period of time passes by customary reckoning... Al-ʿAlqamī stated: 'Scholars refer to this as the Sunnah of Zawāl, and it is distinct from the four rakʿāt that constitute the Sunnah of Ẓuhr.' Our shaykh said: Al-Ḥāfiẓ al-ʿIrāqī stated that among those who explicitly affirmed its recommendation was al-Ghazālī in al-Iḥyāʾ, in the chapter on devotional litanies, noting that there is no tasleem between them — meaning there is no break between each pair of rakʿāt."
The time of the sun's decline (zawāl) marks the very beginning of the time for the Ẓuhr prayer.
And Allah the Almighty knows best.
What is the wisdom behind legislating the Udhiyah?
The Muslim must know that through the Uḍḥiyah, he complies with the command of Allah, the Exalted, and performs a worship that brings him closer to Allah and distances him from the Fire.
The Uḍḥiyah holds profound wisdoms and noble meanings, including:
1-Reviving the Sunnah of Abraham, peace be upon him: He complied with Allah's command when He ordered him to slaughter his son Ishmael. Abraham, peace be upon him, succeeded in the test, and when he was about to slaughter his son, Allah sent down a ram to ransom Ishmael and commanded him to slaughter it instead. Allah, the Exalted, says {what means]: "And when he reached with him [the age of] exertion, he said, 'O my son, indeed I have seen in a dream that I [must] sacrifice you, so see what you think.' He said, 'O my father, do as you are commanded. You will find me, if Allah wills, of the steadfast.' And when they had both submitted and he put him down upon his forehead, We called to him, 'O Abraham, You have fulfilled the vision.' Indeed, We thus reward the doers of good. Indeed, this was the clear trial. And We ransomed him with a great sacrifice." [Al-Ṣāffāt/102-107]. Thus, the sacrificial offering became an enduring Sunnah until the Day of Judgment, and Muslims offer their wealth as sacrifices, drawing closer to Allah, the Exalted, reviving this great Sunnah.
2-Providing abundance for people on Eid day and the Days of Tashrīq: Among the wisdoms of the Uḍḥiyah is that the Muslim provides generously for his family, neighbors, relatives, and the poor during these days. The Muslim is encouraged to eat from his sacrifice, give charity from it to the poor, and gift from it to his wealthy neighbors. Thus, goodness spreads throughout the entire community. The Prophet, peace and blessings be upon him, said: "The Days of Tashrīq are days of eating and drinking." (Narrated by Muslim). Allah, the Exalted, says {what means}: "And the camels and cattle We have appointed for you as among the symbols of Allah; for you therein is good." [Al-Ḥajj/36]. This good includes the good of both this world and the Hereafter.
How should I deal with the whispers of the devil with regard to ablution and purity?
Whispers in ablution are from the devil, and so you should take refuge in Allah from the devil`s evil suggestions that aim to distort the religion. Thus, once an organ is completely pure, don`t question its purity since having whispers doesn`t mean that the purity is invalid as it has already been established.
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.