“Five are the rights of the Muslim: Returning his greeting, accepting his invitation; attending his funeral; visiting the sick; and answering (saying Yarhamuk-Allah) to the one who sneezes, if he praises Allah (says Al-Hamdu Lillah).”
Sunan Ibn Majah Book 6, Hadith 3