The short answer
Muslims greet one another by wishing peace (as-salamu alaykum) and reply with an equal or better greeting. The Prophet ﷺ encouraged spreading salam widely, taught that the one who greets first is closest to Allah, and gave guidance on who greets whom, such as the one walking greeting the one sitting and the smaller group greeting the larger.
The detail
The Islamic greeting is a short prayer: you wish the other person peace, and often Allah's mercy and blessings too. It is said on meeting, on entering a home and on joining or leaving a gathering.
Replying
The Quran instructs believers that when they are greeted, they should reply with a better greeting or at least the same (4:86). So if someone says 'peace be upon you', a fuller reply adds mercy and blessings. Most scholars regard returning a greeting as a duty, while starting it is a strongly encouraged sunnah.
Spreading salam
The Prophet ﷺ told people to spread the greeting of peace, feed others, keep family ties and pray at night, promising that this leads to Paradise in peace. He taught that people closest to Allah are those who are first to give salam, which turns greeting into an act of humility rather than waiting to be noticed.
Who greets whom
He also gave simple guidance: the rider greets the walker, the walker greets the one sitting, and a small group greets a large one; one narration adds that the young greet the old. This puts the responsibility on the one approaching, or in the easier position, and honours elders.
At home
The Quran tells believers to greet one another when entering houses, with a greeting from Allah that is blessed and good (24:61). Saying salam to your own family when you come home is a simple way to bring that blessing into daily life.
Primary references
The Quran and hadith this answer rests on, quoted from the stored texts with their references.
From the Quran
Quoted from the stored Quran text with the translation named below each verse.
وَإِذَا حُيِّيتُم بِتَحِيَّةٍۢ فَحَيُّوا۟ بِأَحْسَنَ مِنْهَآ أَوْ رُدُّوهَآ ۗ إِنَّ ٱللَّهَ كَانَ عَلَىٰ كُلِّ شَىْءٍ حَسِيبًا
When ye are greeted with a greeting, greet ye with a better than it or return it. Lo! Allah taketh count of all things.
لَّيْسَ عَلَى ٱلْأَعْمَىٰ حَرَجٌۭ وَلَا عَلَى ٱلْأَعْرَجِ حَرَجٌۭ وَلَا عَلَى ٱلْمَرِيضِ حَرَجٌۭ وَلَا عَلَىٰٓ أَنفُسِكُمْ أَن تَأْكُلُوا۟ مِنۢ بُيُوتِكُمْ أَوْ بُيُوتِ ءَابَآئِكُمْ أَوْ بُيُوتِ أُمَّهَٰتِكُمْ أَوْ بُيُوتِ إِخْوَٰنِكُمْ أَوْ بُيُوتِ أَخَوَٰتِكُمْ أَوْ بُيُوتِ أَعْمَٰمِكُمْ أَوْ بُيُوتِ عَمَّٰتِكُمْ أَوْ بُيُوتِ أَخْوَٰلِكُمْ أَوْ بُيُوتِ خَٰلَٰتِكُمْ أَوْ مَا مَلَكْتُم مَّفَاتِحَهُۥٓ أَوْ صَدِيقِكُمْ ۚ لَيْسَ عَلَيْكُمْ جُنَاحٌ أَن تَأْكُلُوا۟ جَمِيعًا أَوْ أَشْتَاتًۭا ۚ فَإِذَا دَخَلْتُم بُيُوتًۭا فَسَلِّمُوا۟ عَلَىٰٓ أَنفُسِكُمْ تَحِيَّةًۭ مِّنْ عِندِ ٱللَّهِ مُبَٰرَكَةًۭ طَيِّبَةًۭ ۚ كَذَٰلِكَ يُبَيِّنُ ٱللَّهُ لَكُمُ ٱلْءَايَٰتِ لَعَلَّكُمْ تَعْقِلُونَ
No blame is there upon the blind nor any blame upon the lame nor any blame upon the sick nor on yourselves if ye eat from your houses, or the houses of your fathers, or the houses of your mothers, or the houses of your brothers, or the houses of your sisters, or the houses of your fathers' brothers, or the houses of your fathers' sisters, or the houses of your mothers' brothers, or the houses of your mothers' sisters, or (from that) whereof ye hold the keys, or (from the house) of a friend. No sin shall it be for you whether ye eat together or apart. But when ye enter houses, salute one another with a greeting from Allah, blessed and sweet. Thus Allah maketh clear His revelations for you, that haply ye may understand.
From the hadith
Each hadith is quoted as stored, with its collection, number and the reference and grade the edition gives.
'Abdullah bin Salam (May Allah be pleased with him) reported: I heard the Messenger of Allah (ﷺ) saying, "O people, exchange greetings of peace (i.e., say: As-Salamu 'Alaikum to one another), feed people, strengthen the ties of kinship, and be in prayer when others are asleep, you will enter Jannah in peace."
Show the Arabic
وعن أبي يوسف عبد الله بن سلام رضي الله عنه قال: سمعت رسول الله صلى الله عليه وسلم يقول: "يا أيها الناس أفشوا السلام، وأطعموا الطعام، وصلوا الأرحام وصلوا والناس نيام، تدخلوا الجنة بسلام" ((رواه الترمذي وقال حديث حسن صحيح)).
Narrated Abu Umamah: The Prophet (ﷺ) said: Those who are nearest to Allah are they who are first to give a salutation.
And At- Tirmidhi narrated its meaning and classified it as Hasan.
Show the Arabic
وعن أبي أمامة رضي الله عنه قال: قال رسول الله صلى الله عليه وسلم: "إن أولى الناس بالله من بدأهم بالسلام" ((رواه أبو داود بإسناد جيد، ورواه الترمذي بنحوه وقال: حديث حسن، وقد ذكر بعده)).
Abu Hurairah (May Allah be pleased with him) reported: The Messenger of Allah (ﷺ) said, 'A rider should greet a pedestrian; a pedestrian should greet one who is sitting; and a small group should greet a large group (of people).''
.
The narration in Al-Bukhari adds: The Messenger of Allah (ﷺ) said, "The young should greet the elderly.''
Show the Arabic
عن أبي هريرة رضي الله عنه أن رسول الله صلى الله عليه وسلم قال: "يسلم الراكب على الماشي، والماشي على القاعد، والقليل على الكثير” ((متفق عليه)) وفي رواية للبخاري: "والصغير على الكبير"
Further sources
Written for Islamic Portal from the Quran and hadith cited above.
What scholars say
Jurists discussed many details: whether one person in a group may reply on behalf of all, greeting someone who is reciting Quran or in the toilet, and greeting members of the opposite sex where there is risk of fitnah. On greeting people of other faiths there are differing views: some classical scholars discouraged initiating the Islamic greeting, while others, including many contemporary scholars, allow greeting non-Muslim neighbours and colleagues with salam or with an ordinary kind greeting. All agree on courtesy and on returning a greeting graciously.
In practice
- Walking into the office kitchen, you greet the colleagues already sitting there rather than waiting for them to greet you.
- A father makes a point of saying salam aloud every time he comes home, and his children start doing the same.
- Someone greets you with 'as-salamu alaykum' and you reply with 'wa alaykum as-salam wa rahmatullah'.
Common misunderstandings
- Salam is only for close friends. The Prophet ﷺ told people to spread the greeting widely, and scholars encourage greeting acquaintances and strangers alike.
- A short reply is rude. Replying with the same greeting fulfils the duty in the Quran; adding more is a virtue, not a requirement.
- The more senior person should always greet first. The guidance is the opposite: the one approaching, and the younger, take the initiative.
Check your understanding
Try to explain the answer in two sentences, in your own words, as if to a friend. Then read the short answer again and compare.
Suggested lessons
Courses, lessons and guides that teach this topic step by step.
Review and provenance
- Written by
- Islamic Portal editorial team
- Added
- 10 November 2026
Corrections
No corrections have been needed.
