Question:
Is it correct to give a collective greeting of salam when entering or leaving the mosque, especially when a congregational prayer is being performed? I heard from a scholar that instead of a collective greeting, one should greet the people nearest to oneself. Guidance is needed on this.
Answer by Fadilat al-Alim Fahd Ansari (may Allah preserve him) and Fadilat al-Alim Umar Athari (may Allah preserve him)
➊ Permission for a general greeting:
Giving a general greeting of salam when entering the mosque is established by a hadith in Sahih Muslim, as mentioned in the hadith of Sayyiduna Miqdad (may Allah be pleased with him).
The Prophet ﷺ used to give the greeting in the mosque in a low voice, so that those who were asleep would not wake up and those who were awake would hear.
➋ Collective greeting during congregational prayer:
When a congregational prayer is being performed in the mosque, a loud collective greeting that disturbs the worshippers is not correct.
In this case, it is better to greet the people nearest to you in a low voice when entering.
Evidences:
- A hadith in Sahih Muslim:
Sayyiduna Abdullah ibn Mas’ud (may Allah be pleased with him) says:
“We used to greet the Messenger of Allah ﷺ with salam while he was praying and he would reply to us, but when we returned from the Negus, we greeted him and he did not reply. We said: Why? He said: There is preoccupation in prayer.”Reference: Sahih Muslim: 538 - A hadith in Sunan al-Tirmidhi:
Sayyiduna Abdullah ibn Umar (may Allah be pleased with him) says:
“I asked Bilal (may Allah be pleased with him): How did the Messenger of Allah ﷺ reply to the greeting while praying? He said: He would gesture with his hand.”Reference: Sunan al-Tirmidhi: 369
➌ Principles of giving the greeting and replying to it:
- When entering the mosque, one should give the greeting in a low voice so that khushu’ (humility and focus in prayer) is not affected.
- If someone gives the greeting during the prayer, the imam or the worshipper may reply with a gesture.
- After the prayer is finished, it is permissible to reply aloud.
➍ The virtue of giving the greeting after the prayer:
According to the hadith, one should give the greeting both when coming to a gathering and when leaving it, as the Prophet ﷺ said: “The last greeting is not lesser than the first greeting.”
Summary:
- When entering the mosque, the collective greeting should be in a low voice so that khushu’ is not disturbed.
- If a congregational prayer is being performed, greet the people nearby, or enter quietly without giving a greeting.
- Worshippers may reply with a gesture, and it is also correct to reply after finishing the prayer with the taslim.