What is the ruling on praying alone (munfaridan) in a row, and what should I do if I enter the mosque together with another person, and there is only a single gap in the first row with no second row present — should I fill that gap in the first row, or should I stand together with him in a new second row?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
If a person enters [the congregation] and finds no space available in the row, it is recommended for him — after making his opening takbīr for the prayer — to gently pull someone from the row in front of him to pray alongside him, provided he senses that this person would be agreeable to it. If that person does not agree, then he prays alone, and there is no dislike attached to his doing so in that case.
If he ends up praying alone [behind the row], it is sunnah for him to stand directly behind the imam. Then, if someone else arrives, that person stands to his right; and whoever comes after them stands to his left — and so on — such that the imam remains centered in the middle of the row. This is done so that everyone attains the reward of congregational prayer.
As for the case where two people enter the prayer together, and there is a gap in the row wide enough for only one person, then the two of them should pray together in a new row [of their own], and whoever arrives after them should fill that original gap. This is because if only one of the two fills the gap, the other would end up praying alone [which is to be avoided when it can easily be prevented].
Al-Khaṭīb ash-Shirbīnī (raḥimahullāh) said in Mughnī al-Muḥtāj (Vol.1/P.494): "If he does not find space, then it is recommended for him, while still standing, to gently pull a single person from the row toward himself after making his opening takbīr — out of caution, so as to avoid the position held by some scholars that a person's prayer standing alone behind the row is not valid.
Az-Zarkashī and others said: this should only be done if it seems he would agree to it; otherwise, he should not pull anyone — indeed, doing so becomes impermissible, out of fear of causing discord (fitnah). It is recommended for the person being pulled to cooperate and agree, so that he may attain the reward of assisting in righteousness and piety (al-birr wat-taqwā). However, he should not pull one of two people [praying together] from the row, since this would cause one of them to end up praying alone. This is why the 'pulling' described here takes place only after the opening takbīr [i.e., once the person doing the pulling has already validly begun his own prayer]."
Accordingly: it is sunnah for you to pray alongside the person praying alone, and then, if someone else arrives afterward, you may go and fill the gap in the original row. And Allah, the Exalted, knows best.
Is it a condition for I‘tikaf to be performed in the mosque?
Yes, for I‘tikaf to be valid, it must be performed in a mosque. I‘tikaf is not valid if performed at home or elsewhere.
What is the ruling on performing the Istikhara prayer after the Witr paryer?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
The Istikhara prayer (Prayer for seeking guidance) is a Sunnah. It consists of two units (rak’ahs) performed outside of the obligatory prayers, after which the person supplicates with the traditionally narrated du’a. It is permissible to perform it before or after the Witr prayer, as the Istikhara prayer is recommended at all times except during the disliked times—the periods in which prayer is prohibited. This is because its specific reason (the Istikhara and supplication) occurs after the prayer itself, and any prayer with a subsequent reason is not permitted during the prohibited times. It should be noted that the two rak’ahs of Istikhara are not fulfilled by performing only one rak’ah, nor by a prostration of recitation (Sajdat al-Tilawah), nor by a funeral prayer (Janazah). And Allah the Exalted knows best.
Which is more excellent for a woman: to pray in the mosque or in her house?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
Our Master the Prophet ﷺ said: 'It is more excellent for a woman to pray in her house than in her courtyard, and more excellent for her to pray in her private chamber than in her house.' Therefore, a woman’s adherence to her home and her refraining from going to the mosques—in obedience to the command of Allah the Exalted—attains a great reward and abundant recompense. Furthermore, women praying in congregation within their homes is better than their attendance at the mosques, based on the aforementioned Hadith. And Allah the Exalted knows best.