Anas bin Malik reported,

Two men sneezed in the presence of the Prophet ﷺ. He invoked a blessing upon one of them but not upon the other.He was asked, "Messenger of Allah, two men sneezed in your presence. You invoked a blessing upon one but not upon the other."He replied, "This one praised Allah, and this one did not praise Allah."

Ibn Majah 3713

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا يزيد بن هارون عن سليمان التيمي

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

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

ابن ماجه 3713صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Manners
Chapter
Responding to the one who sneezes
Numbering
Darussalam 3713
Ibn Majah 3713