It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said:
“Five are the rights of the Muslim: Returning his greeting, accepting his invitation; attending his funeral; visiting the sich; and answering (saying Yarhamuk-Allah) to the one who sneezes, if he praises Allah (says Al-Hamdu Lillah).”