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 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.
Where should a woman following her husband or another man in prayer stand?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If a single woman prays with a man—whether she is his wife or a non-mahram (Ajnabiyyah)—the Sunnah is for her to stand behind the Imam and be shielded by him. If the Imam is leading both a man and a woman, the man should stand to the Imam's right, and the woman should stand behind the male follower (Muqtadi). In this way, she is shielded from the Imam by the male follower and remains at a distance from the follower and his line of sight. And Allah the Exalted knows best.
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]