The Islamic way of greeting a Muslim is by saying “As-Salamu Alaykum”. It means “Peace be upon you”, and the response of it is “Wa Alaykum As-Salam” meaning, “and on you be peace”. It is highly recommended to greet a fellow Muslim in this manner, and once greeted, it is wajib (compulsory) on the other person to reply back.
It is also stated in the Qur’an to say this greeting when one enters his/her house, even if the house is empty. “…So when you enter houses, greet your people with a salutation from Allah, blessed (and) goodly;…” (24:61).