Anas bin Malik reported,

Two men sneezed in the presence of the Prophet ﷺ. He invoked a blessing for one of them but not for the other. The one for whom he did not invoke a blessing said, "Messenger of Allah, you blessed this man but did not bless me."The Messenger of Allah ﷺ replied, "He praised Allah, but you did not praise Allah."

Tirmidhi 2742

Sahih

حدثنا ابن أبي عمر حدثنا سفيان عن سليمان التيمي

عن أنس بن مالك

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

الترمذي 2742صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Manners
Chapter
Obligation of saying "yarhamuk Allah" upon the sneezer's praise of Allah
Numbering
Darussalam 2742
Tirmidhi 2742