Sahih Muslim 2991 a
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِنَّ هَذَا حَمِدَ اللَّهَ وَإِنَّكَ لَمْ تَحْمَدِ اللَّهَ "
Anas b. Malik reported that two persons sneezed in the presence of Allah's Messenger (ﷺ). He (the Messenger of Allah) invoked mercy for one, and did not invoke for the other. The one for whom he had not prayed said:
So and so sneezed and you said: May Allah have mercy upon you. I also sneezed but you did not utter these words for me. Thereupon he (the Holy Prophet) said: That person praised Allah, and you did not praise Allah.
Full reference and source
Sahih Muslim 2991 a In-book : Book 55, Hadith 69 USC-MSA web (English) : Book 42, Hadith 7125 (deprecated)
View source on Sunnah.com (opens in a new tab)