حَدَّثَنَا مَالِكُ بْنُ إِسْمَاعِيلَ، قَالَ‏:‏ حَدَّثَنَا أَبُو عَوَانَةَ، عَنْ عُمَرَ بْنِ أَبِي سَلَمَةَ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ‏:‏ ثَلاَثٌ كُلُّهُنَّ حَقٌّ عَلَى كُلِّ مُسْلِمٍ‏:‏ عِيَادَةُ الْمَرِيضِ، وَشُهُودُ الْجَنَازَةِ، وَتَشْمِيتُ الْعَاطِسِ إِذَا حَمِدَ اللَّهَ عَزَّ وَجَلَّ‏.‏
Translation
Abu Hurayra reported that the Prophet, may Allah bless him andgrant him peace, said, "There are three things which are all a duty forevery Muslim

to visit the sick, to attend funerals, and to say, 'may Allahhave mercy on you' when someone sneezes if he praises Allah Almighty."