The greeting itself is a sunnah to give and an obligation to return — the scholars' settled formula is "initiating salam is sunnah, and answering it is obligatory." Beyond that, the etiquettes concern who greets whom, what words are used, how the reply is given, and whom you should not greet.
The ruling that anchors everything
The scholars state the rule in a single line, and everything else in the etiquette follows from it. Initiating the greeting is a sunnah; returning it is a duty. IslamWeb (fatwa 22278) reports that this is the position of the majority, and that the obligation of the reply is agreed upon without dispute — al-Nawawi states in al-Majmu' that answering the salam is a fard by consensus.
The obligation rests on Allah's command:
"And when you are greeted with a greeting, greet with one better than it, or return it."— Qur'an 4:86
Because the verse commands the reply, the scholars read the command as binding. The command to initiate is read the same way by some — the Hanafis took it literally and held initiating salam obligatory, and Ibn Taymiyyah in al-Ikhtiyarat also held it obligatory. The majority carried it instead to recommendation, and Shaykh Ibn 'Uthaymin explains why: the Prophet ﷺ permitted a Muslim to shun his brother for up to three days, and said the better of the two is the one who greets first — which shows the greeting is not a strict duty.
Who greets whom
The Prophet ﷺ set out an order of precedence:
"The rider greets the walker, the walker greets the one sitting, and the few greet the many."— Sahih al-Bukhari and Sahih Muslim, from Abu Hurayrah
Shaykh Ibn 'Uthaymin draws out the practical point: this order is what is better, not a condition for validity. If the one who should have greeted first does not, the other should not let the sunnah die — he greets anyway, whether he is older or younger, one or many. The Prophet ﷺ said the better of two people is the one who begins the greeting, and that applies regardless of rank. He adds a caution against the opposite habit: a group should not let a lone man pass without greeting simply because he failed to greet them first, because the greeting is a visible emblem of Islam and a cause of love between Muslims.
The words to use
The sunnah form when greeting one person is al-salamu 'alayk ("peace be upon you"), and al-salamu 'alaykum when greeting a group. Shaykh Ibn 'Uthaymin notes there is scholarly disagreement over whether the definite article (al-salam) or the indefinite (salam) is better, and whether the singular or plural pronoun is better; the stronger view he gives is that the definite form with the singular — al-salamu 'alayk — is best, though al-salamu 'alaykum is also permitted, either out of respect for the one addressed or because angels are present with him.
In the reply, all of these are valid: 'alayk al-salam, 'alaykum al-salam, wa 'alayk al-salam, wa 'alaykum al-salam. Shaykh Ibn Baz (fatwa 18151) sets out the ladder of reward: if someone says al-salamu 'alaykum, you must at least say wa 'alaykum al-salam; if he adds wa rahmatullah, you return it with wa rahmatullah; if he completes it with wa barakatuh, you return the full form. Adding beyond what he said is recommended, and anything further — "how are you", "may Allah bless you" — is a fine addition after the obligatory reply.
The reply must be a real reply
Two conditions attach to the reply, and both are commonly neglected.
It must be audible. Al-Nawawi states that both the greeting and the reply require raising the voice enough to be genuinely heard, and no more than that. Shaykh Ibn 'Uthaymin spells out the consequence: if someone greets you clearly and you answer under your breath, you have not fulfilled the obligation, because Allah said "or return it" — and a reply no one hears is not a return.
It must be the greeting, not a substitute. "Welcome", "hello", "good morning" and the like do not discharge the duty, whether at the start or in the reply. Shaykh Ibn 'Uthaymin is emphatic: if a man says "welcome" a thousand times in reply to a salam, it does not count and he has not met the obligation. IslamWeb (fatwa 26757) makes the same point — such phrases are fine after the salam or its reply, but not instead of it. He also warns against replacing the Islamic greeting with foreign phrases out of admiration for other cultures.
The warmth should match the words. The "better" reply is not only in wording but in voice and face. Shaykh Ibn 'Uthaymin notes that if someone greets you with a clear voice and a cheerful face, answering with a frown or a mumble fails the standard the verse sets.
When a group is greeted
If the salam is given to a group, the reply is a communal obligation (fard kifayah): if one of them answers, the duty falls from the rest. If none answers, all of them are sinful. Al-Nawawi adds that if an outsider — someone not among those greeted — answers on their behalf, the obligation is not lifted from the group. It is better if all of them reply, whether together or one after another, since each then earns the reward of fulfilling the duty.
Whom not to greet
IslamWeb (fatwa 22358) lists the categories the scholars excluded, and the reasoning is that the greeting is an honour not owed in these cases:
- The disbeliever — you do not initiate with him. The Prophet ﷺ said: "Do not begin the Jews and the Christians with the greeting." But if he greets you, you must reply, because the verse addresses being greeted, not being greeted by a Muslim. Shaykh Ibn 'Uthaymin notes the verse says "when you are greeted" — not "when Muslims greet you."
- The wrongdoer, the openly sinful, and the innovator — disliked, and more strongly so the graver the innovation.
- Those engrossed in idle amusement, at the time they are engaged in it.
- A young woman, when there is fear of temptation.
- Those occupied with the call to prayer, the recitation of the Qur'an, or one who is asleep — and the one in ihram (the pilgrim's consecrated state) reciting the talbiyah.
- Sellers of alcohol and drug dealers — particularly when withholding the greeting may deter them from their sin.
Shaykh Ibn 'Uthaymin adds a nuance on the person busy with recitation: do not greet him if you know it will cut off his recitation — unless you fear he will read your silence as something else, in which case greet him to prevent that harm.
Replying when you are not free to
The obligation to reply is lifted from one who is praying, engaged in dhikr, or — as the Mauritanian scholar Ahmad Zaydan notes in his commentary on Khalil — one who has lost his reason, or a young woman from whom temptation is feared.
On places of purification, Shaykh Ibn Baz (fatwa 20203) was asked about greeting people at the ablution areas: he answered that it is prescribed to greet them, and obligatory on them to reply, when those areas are outside the lavatory itself. Shaykh Usamah Sulayman distinguishes the two: inside the lavatory it is not permissible to give the greeting, and one who is relieving himself does not reply; at the ablution area there is disagreement, and the view of recommendation holds that a person should not reply except while in a state of purity — because the Prophet ﷺ was performing wudu when a man greeted him, and he did not answer until he had finished.
Greeting a non-Muslim
You do not begin with a non-Muslim, but you must answer if he greets you. Shaykh Ibn 'Uthaymin explains the reply: if he says clearly al-salamu 'alaykum, you say wa 'alaykum al-salam; if he does not pronounce it clearly and you fear he is saying al-sam 'alaykum ("death be upon you") — as the Jews of Madinah did with the Prophet ﷺ — you say only wa 'alaykum. He notes that the Prophet ﷺ instructed: "Say: wa 'alaykum," and that restricting yourself to what carries no harm is the better course.
Key takeaways
- Initiating salam is a sunnah and returning it is obligatory — the reply is a duty by consensus, and a group is discharged if one of them answers.
- The reply must be audible and must be the actual greeting — "welcome" or "hello", however often repeated, does not fulfil it.
- Greet in the order the Prophet ﷺ set — rider before walker, walker before seated, few before many — but if the one who should greet first does not, greet anyway rather than let the sunnah lapse.
- Do not initiate with a non-Muslim, but answer him if he greets you — with wa 'alaykum al-salam if he is clear, and wa 'alaykum if you suspect he is not.
- Withhold the greeting from those the scholars excluded — the wrongdoer, the innovator, the one engrossed in amusement, and the young woman when temptation is feared.
Further reading
- al-Nawawi, al-Majmu' — on the obligation of the reply and the conditions of the greeting
- Ibn Taymiyyah, al-Ikhtiyarat — on the obligation of initiating salam
- al-Bukhari, al-Adab al-Mufrad — on the report that "greeting is voluntary and the reply is obligatory"
And Allah knows best.
Sources6
This is a guide to what the scholars have said, not a fatwa. For your own situation, ask a qualified scholar who can hear the details.