To Preceed in Greeting
Greeting brother Muslims is one of these Islamic practices which are hallmark of a Muslim and its merits have been anointed in many ahadith e.g. "One who takes precedence in greeting others is closer to Allah." (Abu Daud)
It is not necessary to greet only those with whom one is acquainted; greeting strangers who are known to be Muslim is a matter of great merit.
Our holy Prophet, may he be Divinely blessed eternally, was asked as to which actions are good for Muslim. Among the actions which he enumerated was this: "You should greet people whether you know them or not."
It is reported about Abdullah bin Omar that sometimes he went out of the house only to greet any Muslims he met and thus to increase his merit. (Muvatta Imam Malik)
The correct interpretation of this hadith, however, is that one should greet others, though not everyone one sees because it is impossible and it might be embarrassing for others. (Al Adab al Shahriah, li ibn Muslih page 422, vol 1)
It is also a sunnah to greet the family when entering the house. Our holy Prophet instructed his personal servant Anas as follows, " On son! When you enter (your) house, greet your family members; this act shall be of benefit for both you and your family members." (Tirmidhi) Even when entering an empty house one should greet with the intent that angels are being greeted.
Haidth also urges the Muslims to clearly speak out the greeting so that it may be heard and understood. Although the sunnah of greeting is fulfilled by saying 'Al Salam Alaikum', adding 'Rahmat ullah wa barakatuhu' earns more merit.
Imran bin Husayn recounts that once he and others were in the presence of our exalted and eternally blessed Prophet when a man came and said, "Assalamo alaikum", to which the blessed Prophet responded and said, "Ten" (i.e. the person who had greeted him had earned ten merits); then another man came and he "Assalamo alaikum wa Rahmatullah", to which the blessed Prophet responded and said "Twenty" (i.e. the person had earned twenty merits). Finally a third man came and said "Assalamo alaikum wa Rahmatullah wa Barakatu", to which the exalted Prphet responded and said, "Thirty" (i.e. the person had earned thirty merits) (abu Daud, Tirmidhi, Jami al Usul, p. 602. vol 6)
It should be noted here, however, that salaam i.e. is a sunnah only when the person greeted is not busy or when salaam would not disturb him. If salaam is going to disturb him in whatever he is doing, e.g. reciting Quran or doing dikhir or tending the sick of studying or doing something else in which loss of concentration would cause loss, the one should wait till the work is finished.
Similarly, it is not right to salaam when somebody is making a speech, and the speaker too should not do it. However, if a group is sitting quietly and somebody passes by then he should greet them. If someone wishes to join them then just one salaam is enough and a single response from one of the group fulfills the sunnah.
To be the first with salaam is sunnah and he who does not reply to is a sinner.
When a letter is received in which "salaam alaikum" is written, it should be responded to in the prescribed manner while reading the letter.