Giving salam is a noble practice and highly encouraged in Islam. Salam is a supplication for well-being and safety, and giving salam is recommended while answering salam is obligatory.
This was said by imams in the Friday sermon yesterday.
Islam encourages followers to maintain two relationships, namely relationship with Allah the Almighty, by worshipping and obeying His commands and staying away from His prohibitions, as well as relationship with others by carrying out obligations and fulfilling the rights of Muslims for example by giving salam.
Salam is given not just when greeting others, but also when entering houses.
Imams added, that if there is no one in the house, we are to give salam thus: “May peace be upon us and upon the pious and righteous servants of Allah the Almighty.”
Although spreading salam is highly encouraged, there are also places and times it is forbidden, such as to those relieving themselves; those who are sleeping; those performing the azan and iqamat; those in prayer; eating with food in their mouths; those reading Al-Quran; and during the Friday sermon.