Is it mentioned in any tradition that whoever misses the two rak'ahs of "Tahiyyat al-Masjid" (greeting the mosque) should say after the obligatory prayer: "Subhan Allah, Walhamdulillah, Wa La Ilaha Illallah, Wallahu Akbar" (Glory be to Allah, and praise be to Allah, and there is no god but Allah, and Allah is the greatest) four times, and he will receive the same reward?
There is no narration indicating that uttering specific words can substitute for the greeting of the mosque prayer (Tahiyat al-Masjid). However, some Maliki and Shafi'i jurists have mentioned the desirability of doing so for those who are unable to perform the greeting prayer due to a ritual impurity (hadath) or preoccupation, and that these words are equivalent to two rak'ahs. These words are: "Subhan Allah, wal-hamdulillah, wa la ilaha illa Allah, wa Allahu Akbar." Some have added: "wa la hawla wa la quwwata illa billah." The justification for this desirability is that these words constitute the prayer of all creatures, and they are the good words and the enduring righteous deeds (al-baqiyat as-salihat). Nevertheless, stipulating an act of worship to a specific time or amount requires a legal proof. This does not mean that this remembrance is forbidden altogether; rather, it is desirable. However, the claim that it stands in place of the greeting of the mosque prayer requires evidence.
Summarized from the full answer at Ftawy · reviewed Sep 2, 2026
Read the full answer on Ftawyhttps://ftawy.com/en/questions/72302