Does passing wind from the anus affect ritual purity?
Ablution is nullified by the passing of wind from the anus, but washing the anus is not required as wind leaves no impurity.
What is the ruling if someone wipes his head then shaves it - must he repeat it?
If a person performing ablution shaves his head after wiping it during ablution, he is not required to re-wipe his head or repeat the ablution. And Allah the Almighty knows best.
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 ruling on the follower`s prayer if the Imam stands for a fifth rak`ah?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If the Imam stands up for an extra unit (rak‘ah) of prayer out of forgetfulness, he must return to the sitting position as soon as he remembers, and he should perform the prostration of forgetfulness (Sujud al-Sahw). It is the duty of the congregants (Ma’mumin) behind him to remind him. However, if the Imam is in a state of doubt regarding the extra unit (and not certainty), it is not permissible for him to return.
As for the congregants: anyone who is certain that the Imam has stood for an extra unit is forbidden from following him. In this case, the follower has two choices: either intend to separate from the Imam (Mufaraqah) and finish the prayer alone, or wait for the Imam in the sitting position and perform the final salams with him—the latter being the preferred option. If a follower knowingly follows the Imam into an extra unit, their prayer becomes invalid. However, if a follower is in doubt and not certain of the mistake, they must continue following the Imam, as the Imam was appointed to be followed.
It is stated in Al-Majmu’ (Vol.4/P.145): 'If [the Imam] stands for a fifth rak‘ah, the follower should not follow him, even if it is assumed that the Imam might have omitted a pillar from a previous unit; because if the reality is known, following him is impermissible since the follower has certainly completed their own prayer. Even if the follower had missed a previous unit (Masbuq) or was in doubt about performing a pillar like the Fatihah, and the Imam stood for the fifth, it is not permissible for the latecomer to follow him in it. This is because we know that this unit is not counted for the Imam and that he is mistaken in performing it.' And Allah the Exalted knows best.