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]
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 on doubting whether one or two prostrations were performed?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If a worshiper is in doubt regarding the number of units (rak'ahs) or prostrations (sajdahs) performed, he must build upon the minimum (i.e., assume the lower number) and perform the prostration of forgetfulness (Sujud al-Sahw) before the Salam at the end of the prayer. This is based on the report from ‘Ata’ ibn Yasar that the Messenger of Allah ﷺ said: 'When anyone of you is in doubt about his Salat (prayer) and does not know how many he has prayed, three or four (Rak'at) he should cast aside his doubt and base his prayer on what he is sure of. Then, he should perform two prostrations before Taslim (salutation). If he has prayed five Rak'at, they will make his Salat (prayer) an even number for him and if he has prayed exactly four, they (i.e. two prostrations) will be humiliation for the devil..' (Narrated by Abu Dawud).
It is stated in Al-Muqaddimah al-Hadramiyyah: 'If one doubts [whether he performed] a bowing (ruku’), a prostration, or a rak'ah, he must perform it and prostrate [for forgetfulness], even if the doubt is removed before the Salam—unless the doubt is removed before he performs what would potentially be an addition. Thus, if he doubts whether he prayed three or four, he is obligated to build upon the minimum.' And Allah the Exalted knows best.
What is the ruling on someone who intends to travel to Jeddah for two days — must he enter iḥrām from his place of residence [i.e., before passing the mīqāt]?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
Whoever is firmly resolved in his intention to perform ‘Umrah before setting out on his journey, it is unlawful for him to pass beyond his country's mīqāt (the designated boundary point for entering the state of iḥrām) without entering iḥrām. If he does so, he must return to the mīqāt to enter iḥrām from there, provided he has not yet begun performing the rites of the pilgrimage — in which case nothing further is required of him. However, if he does not return, he must offer a sacrifice (sheep/goat), to be distributed among the poor of the Ḥaram.
It is stated in at-Tanbīh fī al-Fiqh ash-Shāfi‘ī (p. 71): "Whoever, intending to perform the rites [of ‘Umrah or Ḥajj], passes beyond the mīqāt and enters iḥrām only after it, must offer a sacrifice. However, if he returns to the mīqāt before beginning any of the rites, the sacrifice is waived from him."
Accordingly: whoever is firmly resolved in his intention to perform ‘Umrah before setting out on his journey must enter iḥrām at the mīqāt of his country through which he passes. Whoever fails to do so, passing beyond the mīqāt without entering iḥrām, and does not return, has sinned, and must repent to Allah, the Exalted; and he must offer a sacrifice, to be distributed among the poor of the Ḥaram. And Allah, the Exalted, knows best.