Anas bin Malik reported,

Two men sneezed in the presence of the Prophet ﷺ. He responded with a blessing to one of them but not to the other. The man who did not receive the blessing said, "So-and-so sneezed and you blessed him, but I sneezed and you did not bless me."The Prophet ﷺ replied, "This man praised Allah, but you did not praise Allah."

Muslim 7486

Sahih

حدثني محمد بن عبد الله بن نمير حدثنا حفص وهو ابن غياث عن سليمان التيمي

عن أنس بن مالك قال

عطس عند النبي ﷺ رجلان فشمت أحدهما ولم يشمت الآخر فقال الذي لم يشمته عطس فلان فشمته وعطست أنا فلم تشمتني قال إن هذا حمد الله وإنك لم تحمد الله

مسلم 7486صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Asceticism and heart-softening matters
Chapter
Saying "yarhamuk Allah" to one who sneezes and the dislike of yawning
Numbering
Darussalam 7486
Muslim 7486