Is it required for a discerning child to make the intention at night if they wish to fast?
If a discerning child wishes to fast during Ramadan, they must make the intention at night because intention is one of the pillars of fasting, even though fasting is not obligatory for them.
What is the ruling on congregational prayer performed outside the mosque, and is it a condition that it be performed in a mosque in order to attain the full reward?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
It is not a condition for attaining the reward of congregational prayer that it be performed in a mosque; however, a Muslim should still be keen to perform his prayers in the mosque, so as not to miss out on immense reward. This is due to the virtue of the mosque and of spending time there (i‘tikāf), the typically larger number of worshippers present, and the additional reward gained through walking to and from the mosque. On the authority of Abū Hurayrah (raḍiyallāhu ‘anh), the Messenger of Allah ﷺ said: "Whoever purifies himself in his house, then walks to one of the houses of Allah to fulfill one of the obligations Allah has prescribed, one of his steps will erase a sin, and the other will raise him a degree [in status]." (Related by Muslim)
Whoever misses congregational prayer at the mosque should still strive to pray in congregation at his workplace, or together with the members of his household. And Allah, the Exalted, knows best.
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 of Islamic Law on performing the Witr prayer after the Adhan for Fajr prayer?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
The time for Witr prayer begins after the ‘Ishā' prayer and ends with the rising of true dawn (al-fajr aṣ-ṣādiq). If a Muslim performs it at any point within this window, it counts as performed on time.
It is also recommended to make up a missed Witr prayer at any time — whether before or after performing the Fajr prayer, or at any other time of day. On the authority of Abū Sa‘īd al-Khudrī (raḍiyallāhu ‘anh), the Messenger of Allah ﷺ said: "Whoever falls asleep and misses the Witr prayer, or forgets it, let him pray it when he remembers, or when he wakes up." (Related by at-Tirmidhī)
Shaykh al-Islām, Imam Ibn Ḥajar al-Haytamī (raḥimahullāh), says: "The time for Witr prayer is between the ‘Ishā' prayer and the rising of dawn, based on the authentic ḥadīth to this effect. If this time has passed, it is permissible for him to make it up (qaḍā') afterward." [Tuḥfat al-Muḥtāj]. And Allah, the Exalted, knows best.