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.
If someone prayed sitting or lying down because of illness, must he repeat the prayer after he recovers?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
If a sick person prays sitting or lying down in the obligatory prayer because he is unable to stand, and then recovers, he does not have to repeat what he prayed in those postures, because he was excused.
Shaykh al-Islām Imam al-Nawawī (may Allah have mercy on him) said: “The Ummah is unanimously agreed that whoever is unable to stand in the obligatory prayer prays it sitting and does not have to repeat it. Our fellow scholars said: His reward is not less than his reward when standing, because he is excused. It is established in Ṣaḥīḥ al-Bukhārī that the Messenger of Allah (peace and blessings be upon him) said: ‘When a servant falls ill or travels, there is recorded for him what he used to do when healthy and resident.’ Our fellow scholars said: It is not a condition of inability that standing be altogether impossible, nor does the slightest hardship suffice. What counts is clear hardship. If he fears severe hardship, a worsening of his illness, or the like, or if a passenger on a ship fears drowning or dizziness, he prays sitting and does not have to repeat.” [al-Majmūʿ, Vol.4/p.201]. And Allah Almighty knows best.
What is the ruling on bypassing a nearby mosque for a distant one?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If a distant mosque has a larger congregation (Jama‘ah) while the congregation in the nearby mosque is smaller, and the congregation in the nearby mosque is not adversely affected by the worshiper's absence, then it is better for him to pray in the distant mosque with the larger congregation. However, if the congregation in the nearby mosque would be affected by his absence—such as if he is its Imam, or if his presence encourages others to attend—then praying in the nearby mosque is better. This ensures that the congregation is established in two different locations within the community. This is based on the saying of the Prophet ﷺ: 'A man's prayer offered with another man is purer than his prayer which he offers alone, and his prayer with two men is purer than his prayer with one and if they are more (in number), it is more beloved to Allah, the Mighty the Majestic' (Narrated by Ahmad, Abu Dawood, and An-Nasa'i). And Allah the Exalted knows best.
What is the ruling on one who vowed not to speak to a certain person, then forgot his vow and spoke to him?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Whoever swears an oath or makes a vow to abstain from something has a choice: if he wishes, he may keep to his vow, or if he wishes, he may offer the expiation of an oath (kaffārat yamīn). The Prophet (peace and blessings be upon him) said: “The expiation for a vow is the expiation for an oath.” Narrated by Muslim. This type of vow is called a nadhr al-lajāj (a vow made in stubbornness or anger).
If a person makes a vow and then forgets it, nothing is due from him, for forgetfulness is among the excuses that lift legal responsibility (taklīf) from a Muslim. This is based on the saying of the Prophet (peace and blessings be upon him): “Actions are judged only by intentions, and every person will have only what he intended.” [Narrated by al-Bukhārī]. There is no intention for the one who forgets or errs. It is also based on the report: “Indeed, Allah has pardoned for my Ummah mistakes, forgetfulness, and what they are compelled to do.” Narrated by Ibn Mājah and others, and graded authentic by Ibn Ḥibbān and al-Ḥākim.
It is stated in ʿUmdat al-Sālik (p. 243), one of the books of the Shāfiʿī school: “Whoever swears, [for example], ‘I will not enter the house,’ and then enters it forgetfully, ignorantly, under compulsion, or being carried, he does not break his oath.” And Allah Almighty knows best.