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]
I bought an apartment, and I am saving money to pay the remaining balance of its price — is zakāh obligatory on this money?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
Zakāh is obligatory on all saved/hoarded wealth. Once the total wealth reaches the niṣāb (minimum threshold liable for zakah— equivalent to the value of 85 grams of pure 24-karat gold) and a full ḥawl (lunar year) has elapsed over it, zakāh becomes obligatory at a rate of (2.5%) — even if the wealth is earmarked for basic future needs, and even if the wealth's owner is in debt. Debt does not prevent the obligation of zakāh, nor is it deducted when calculating the zakāh due, based on the general and unrestricted wording of all the Qur'anic verses commanding zakāh, which draw no distinction between someone in debt and anyone else.
It is stated in ‘Umdat as-Sālik, from the books of the Shāfi‘ī school: "If someone possesses exactly the niṣāb, and owes an equivalent amount in debt, zakāh remains obligatory on what is in his possession, and the debt does not prevent this obligation" — meaning, the obligation of zakāh on what is presently in his possession.
The ḥawl (annual cycle) recognized for zakāh, as well as for the other sharī‘ah obligations that Allah, the Exalted, has imposed upon Muslims, is the Hijrī (lunar) year. And Allah, the Exalted, knows best.
Is it obligatory to have an intention (niyyah) for every prayer?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
It is obligatory for the worshiper to have a specific intention (Niyyah) for every prayer, meaning they must consciously intend the act of worship they are performing. The intention is a pillar (Rukn) of the prayer, and the prayer is not valid without it. It is not a requirement to utter the intention verbally; rather, doing so is considered a recommended Sunnah. And Allah the Exalted knows best.
Is it permissible to purchase the Udhiyah on installments?
It is permissible to purchase the sacrificial animal (uḍḥiyyah) on installments or by borrowing its price. However, it is not recommended for the poor to do so, because they are not required to offer a sacrifice, and Allah does not burden a soul beyond its capacity. If doing so would lead to negligence in providing for one's dependents (nafaqah wājibah), then giving precedence to obligatory maintenance over borrowing to buy the sacrifice is appropriate. This is based on the saying of the Prophet (peace and blessings be upon him): "It is sufficient sin for a person to withhold food from those whom he is responsible to support."
Furthermore, the sacrifice is valid from one who has a debt, but it is preferable (awlā) to repay the debt first, especially if the debt is due immediately (ḥāll). And Allah Almighty knows best.