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 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.
Is the multiplication of reward for prayer in the sanctuaries of Makkah and Madīnah limited to the obligatory prayer, or does it include the voluntary prayer as well?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
There is no difference between the obligatory (farḍ) and the voluntary (nafl) prayer in the ḥadīth on the multiplication of reward in the two Sanctuaries (al-Ḥaramayn), because the authentic ḥadīths are unrestricted and general in wording. It is therefore not permissible to restrict or specify them without evidence. Shaykh al-Islām Imam al-Nawawī (may Allah have mercy on him) said: “Our school holds that the superiority of prayer in the two mosques of Makkah and Madīnah is not limited to the obligatory prayer, but includes both the obligatory and the voluntary.” [al-Majmūʿ Sharḥ al-Muhadhdhab, Vol.8/p.476]
The multiplication of reward applies to whoever prays in al-Masjid al-Ḥarām or anywhere within the sanctuary (ḥaram). Al-Shirwānī (may Allah have mercy on him) said: “The more correct view according to al-Nawawī is that the multiplication of the prayer’s reward covers the whole sanctuary, and is not limited to the mosque, nor to Makkah itself.” [Tuḥfat al-Muḥtāj with the glosses of al-Shirwānī and al-ʿAbbādī, Vol.10/p.95]. And Allah Almighty knows best.
How many rak‘ahs are there in Tarawih prayer?
The most complete form of Tarawih prayer consists of twenty rak‘ahs, excluding Shaf‘ and Witr. This is the opinion of the majority of scholars, both past and present, and it is the practiced tradition in the two Holy Mosques.
However, Tarawih is valid with any even number of rak‘ahs, even two rak‘ahs, as long as it is performed with the intention of Qiyam al-Ramadan.