What is the guidance regarding the hadith: "A man entered the mosque while the Prophet (peace and blessings be upon him) was delivering a sermon, so he sat down. The Prophet saw him and interrupted the sermon, asking him: 'Have you prayed two rak'ahs?' He said: 'No.' He said: 'Stand up and pray two rak'ahs'," given that the preponderant opinion among scholars is that the two rak'ahs for greeting the mosque are recommended and not obligatory? Is not listening to the sermon – which is obligatory – to be given precedence over what is recommended?
Greeting the mosque (Tahiyyat al-Masjid) is a emphasized Sunnah and not obligatory. Scholars have reached a consensus on its desirability, and it is disliked to sit before performing it without an excuse. The Prophet (peace be upon him) commanded the man to pray the two rak'ahs of greeting during the Friday sermon, which is an evidence of its emphasis, not its obligation. It is possible to combine performing the greeting and listening to the sermon by making the greeting brief. The jurisprudential rule "that an obligation is not abandoned except for another obligation" does not fully apply here, as the prayer of greeting during the sermon is an exception to the general command to listen attentively, and the description of "one who listens attentively" may be applied to someone who performs it.
Summarized from the full answer at Ftawy · reviewed Sep 2, 2026
Read the full answer on Ftawyhttps://ftawy.com/en/questions/12382