What is the ruling on the prayer of one who said "Subḥāna Rabbiya al-ʿAẓīm" in prostration (*sujūd*) and forgot to correct it?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Saying “Subḥāna Rabbiya al-ʿAẓīm” in bowing (rukūʿ) and “Subḥāna Rabbiya al-Aʿlā” in prostration (sujūd) is one of the hayʾāt (non-essential sunnahs) of the prayer. Whoever omits it, whether deliberately or by forgetfulness, or replaces it with another remembrance (dhikr), his prayer is valid and he does not perform sujūd al-sahw. Shaykh al-Islām Imam al-Nawawī (may Allah have mercy on him) said: “Our school holds that one does not prostrate for omitting the audible or silent recitation, the tasbīḥ, and the rest of the hayʾāt.” [al-Majmūʿ, Vol.4/p.127]
If he performs sujūd al-sahw for something that does not call for it, his prayer is invalidated, because he introduced a prostration of forgetfulness without a cause, and he must repeat the prayer. The exception is one who did so out of forgetfulness or ignorance, whether because he recently entered Islam or because he lives far from scholars; he is excused and his prayer is not invalidated.
It is stated in Mughni al-Muḥtāj (Vol.1/p.417): “It is stated in al-Anwār: If he does something that does not call for sujūd al-sahw, thinking that it does, and then prostrates, his prayer is not invalidated if he is ignorant because he recently entered Islam or because he is far from scholars.”
Since this issue is hidden from the laity, as it is among the subtleties of knowledge, and the laity are excused for ignorance of whatever is of such a nature, and their act of obedience is not invalidated because of it, it may be said that the prayer of one who has not acquired knowledge of the issue is not invalidated. As for after knowing it, the prayer is invalidated.
Whoever realizes while still in the prayer that his prostration was out of place, it is sunnah for him to perform sujūd al-sahw. 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 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 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.