Sahih al-Bukhari, Volume 8, Book 73, Hadith 244 (USC-MSA)

Narrated Anas: Two men sneezed before the Prophet and he said Tashmit to one of them, while he did not say Tashmit to the other. So that man said, "O Allah's Messenger! You said Tashmit to that fellow but you did not say Tashmit to me. "The Prophet said, "That man praised Allah, but you did not praise Allah."

حَدَّثَنَا آدَمُ بْنُ أَبِي إِيَاسٍ، حَدَّثَنَا شُعْبَةُ، حَدَّثَنَا سُلَيْمَانُ التَّيْمِيُّ، قَالَ سَمِعْتُ أَنَسًا ـ رضى الله عنه ـ يَقُولُ عَطَسَ رَجُلاَنِ عِنْدَ النَّبِيِّ صلى الله عليه وسلم فَشَمَّتَ أَحَدَهُمَا وَلَمْ يُشَمِّتِ الآخَرَ‏.‏ فَقَالَ الرَّجُلُ يَا رَسُولَ اللَّهِ شَمَّتَّ هَذَا وَلَمْ تُشَمِّتْنِي‏.‏ قَالَ ‏ "‏ إِنَّ هَذَا حَمِدَ اللَّهَ، وَلَمْ تَحْمَدِ اللَّهَ ‏" ‏‏.‏

sunnah.com