Is it not obligatory to perform Tahiyyat al-Masjid (greeting of the mosque) before the Maghrib prayer, based on the command of the Prophet, peace and blessings be upon him, regarding it, or is it merely recommended?
Scholars have differed on the ruling of Tahiyyat al-Masjid (greeting the mosque prayer), holding two views: The majority consider it to be mustahabb (recommended), adducing as proof that the Prophet, peace and blessings be upon him, did not command the one who stepped over people's necks on Friday to pray two rak'ahs. Others hold that it is wajib (obligatory). The evidences are open to both interpretations, so there is no blame on whoever holds it to be obligatory or recommended.
Summarized from the full answer at Ftawy · reviewed Sep 2, 2026
Read the full answer on Ftawyhttps://ftawy.com/en/questions/52890