What is the ruling on having an intention (Niyyah) for every prayer?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
Intention (Niyyah) is a pillar (Rukn) without which the prayer is not valid. The worshiper must have an intention for every prayer, meaning they must consciously intend the act of worship they are performing. Its timing must coincide with the opening Takbir (Takbirat al-Ihram). It is not a requirement to utter it verbally; rather, doing so is considered a recommended Sunnah. There are three levels of intention:
1-If the prayer is obligatory (Fard): It is mandatory to include the Intent (to pray), the Specification (which prayer, e.g., 'Asr), and the Obligation (recognizing it as a Fard). For example, one should bring to mind or say: 'I intend to pray the Fard of 'Asr.'
2-If it is a voluntary prayer restricted by a specific time or cause (Sunnah Muqayyadah): It is mandatory to include the Intent and the Specification. For example: 'I intend to pray the Sunnah before Zuhr' or 'I intend to pray Duha.'
3-If it is an absolute voluntary prayer (Nafl Mutlaq): It is sufficient to simply have the Intent to pray. For example: 'I intend to pray.'
And Allah the Exalted knows best.
What is the ruling of Islamic Law on sitting between the two prostrations, and what is the ruling on the dhikr recited during it?
Praise be to Allah, and peace and blessings upon our master, the Messenger of Allah.
Sitting between the two prostrations (al-jalsah bayna al-sajdatayn) is one of the pillars (arkān) of the prayer, while the dhikr recited during it is Sunnah according to the Shāfi'ī scholars. It is recommended (mustahabb) to say what was narrated from Ibn 'Abbās (may Allah be pleased with him), who said: "The Messenger of Allah (peace and blessings be upon him) used to say between the two prostrations in the night prayer: 'Rabbi ighfir lī, warhamnī, wajburnī, warzuqnī, warfa'nī' (My Lord, forgive me, have mercy on me, make good my deficiencies, provide for me, and raise me)." If one were to say a different supplication instead, such as "Rabbi ighfir lī" (My Lord, forgive me), the prayer would still be valid.
If the worshipper omits this dhikr between the two prostrations, whether intentionally or out of forgetfulness, their prayer remains valid and nothing is required of them, though they miss the reward of following the Sunnah. Leaving it out does not necessitate the prostration of forgetfulness (sujūd al-sahw).
It is stated in Hāshiyat al-Bājūrī 'alā Sharḥ Ibn Qāsim 'alā Matn Abī Shujā' (Vol.1/P.298): "The eleventh — i.e., of the eighteen pillars — his statement: 'sitting between the two prostrations,' meaning even in a supererogatory (nafl) prayer... his statement: 'with the supplication that has been narrated concerning it,' meaning: 'Rabbi ighfir lī, warhamnī, wajburnī, warfa'nī, warzuqnī, wahdinī, wa 'āfinī' (My Lord, forgive me, have mercy on me, make good my deficiencies, raise me, provide for me, guide me, and grant me well-being). Al-Ghazālī added: 'wa'fu 'annī' (and pardon me). Al-Mutawallī also added: 'Rabbi hab lī qalban taqiyyan, naqiyyan min al-shirk, bariyyan lā kāfiran wa lā shaqiyyan' (My Lord, grant me a heart that is God-fearing, pure from associating partners with You, innocent, neither disbelieving nor wretched)."And Allah, the Most High, knows best.
Does passing wind, from the anus without a smell, invalidate prayer?
If a person is certain of having passed wind even if it was with no smell, then both his/her ablution and prayer are invalidated, thus he/she should remake ablution and re-perform prayer.
What is the ruling on fasting?
Fasting in Ramadan is an individual obligation (Fard ‘Ayn) upon every mature, sane Muslim who is capable of fasting.
Fasting can also be recommended (Mustahabb), such as voluntary fasting on Mondays and Thursdays, fasting on the Day of Arafah for those not performing Hajj, and fasting on Ashura.
Fasting can be prohibited (Haram), such as fasting on the two Eid days, the Day of Doubt (Yawm al-Shakk), and the Days of Tashreeq.
Some types of fasting are disliked (Makruh), such as singling out Friday or Saturday for fasting without a specific reason and fasting on the Day of Arafah for a pilgrim.