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 a woman who takes medication to delay menstruation for fasting?
If a woman takes medication (to delay menstrual period) and does not experience menstruation, her fast is valid. However, she is not advised to do so unless there is a necessity.
If the medication harms her, even potentially, it is forbidden (haram) for her to take it.
Can someone who begins a voluntary fast break it?
It is preferable for someone who begins an act of worship not to break it.
Allah the Exalted has said {what means}: "and let not your [good] deeds come to nought!" [Muhammad/33].
However, if a person starts a voluntary fast (nafl) and needs to break it, they are going against what is preferable, but there is no sin upon them.
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.