The Egyptian Dar al-Ifta received a question about whether it is permissible to perform the two rak‘ahs of Tahiyat al-Masjid just before the Maghrib adhan and whether the disliked time prevents it.
The Fatwa committee explained that scholars differ on this issue: some prohibit performing the two rak‘ahs before Maghrib, while others allow it a few minutes before the adhan.
Those who permit it consider the two rak‘ahs a confirmed Sunnah, as stated by Imam Al-Shafi‘i, or recommended according to Ibn Abidin. Hanafi scholars, in Al-Bahr, emphasized that the prayer should be light and not coincide with the official Maghrib prayer time to avoid conflict.
The committee confirmed that performing the two rak‘ahs before or after the adhan is legally valid and carries no sin, provided the worshipper’s heart is focused on Allah and maintains khushu‘. The matter depends on intention, and Islamic law allows flexibility for worshippers according to their school of thought or personal reasoning, while ensuring the obligatory prayer takes priority.
Voluntary prayers like Tahiyat al-Masjid are meant to increase closeness to Allah and earn rewards, whether performed just before or after the adhan, reflecting the wisdom of Sharia in easing obligations and considering varying circumstances.



