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 someone who eats or drinks thinking that the sun has set, then realizes that it has not yet set?
Whoever eats or drinks believing that the sun has set, then later discovers that it has not yet set, their fast is invalid, and they must make up that day after Ramadan. It is not permissible to break the fast before confirming sunset—either by seeing it, through personal reasoning, or by relying on the statement of someone trustworthy in their religious commitment.
What is the ruling of Islamic Law on supplicating with other than the transmitted (Ma'thur) supplications in prayer?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
It is permissible to supplicate (make du'a) during the prayer for anything from the affairs of religion or worldly life, and the prayer is not invalidated by doing so.
Shaykh al-Islam, the Imam an-Nawawi, may Allah have mercy on him, says: "Our madhhab [i.e., the Shafi'i madhhab] holds that it is permissible for a person to supplicate during it [the prayer] with anything that is permissible to supplicate with outside the prayer, from the affairs of religion or worldly life. He may say: 'O Allah, grant me wholesome sustenance, offspring, a house, and a beautiful young wife' — describing her; or: 'O Allah, free so-and-so from prison,' or 'destroy so-and-so,' and other such things — and none of this invalidates his prayer according to us. And this is also the view of Malik, ath-Thawri, Abu Thawr, and Ishaq." [Al-Majmu', Vol.3/P.454]. And Allah, the Exalted, knows best.
Is it permissible for women to attend Tarawih prayer in the mosque?
Yes, it is permissible for women to attend Tarawih prayer in the mosque, provided they observe modesty, proper covering, and avoid mixing with men.
The Prophet ﷺ said: "Do not prevent the female servants of Allah from the mosques of Allah." [Bukhari and Muslim]