It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him), he says that two men sneezed in the presence of the Prophet (peace and blessings be upon him). The Prophet (peace and blessings be upon him) responded to one of them but did not respond to the other. The one to whom the Prophet (peace and blessings be upon him) did not respond said, "You responded to him but not to me?" The Prophet (peace and blessings be upon him) said: "He praised Allah, but you did not praise Allah."
Hadith Referenceالادب المفرد / كتاب العطاس والتثاؤب / 931
Hadith Gradingالألبانی:صحيح
Hadith Takhrij«صحيح : أخرجه البخاري ، كتاب الأدب : 6225 و مسلم : 2991 و أبوداؤد : 5039 و الترمذي : 2742 و ابن ماجه : 3713»
It is narrated from Sayyiduna Abu Hurairah (may Allah be pleased with him) that two men were sitting with the Prophet (peace and blessings of Allah be upon him), one of whom was more honorable than the other. The more honorable one among them sneezed and did not say «الحمد لله», so the Prophet (peace and blessings of Allah be upon him) did not respond to him. The other sneezed and said «الحمد للہ», so the Prophet (peace and blessings of Allah be upon him) said to him «يرحمك الله». Upon this, the honorable man said: "I sneezed in your presence but you did not respond to me, and you responded to him?" The Prophet (peace and blessings of Allah be upon him) said: "He remembered Allah, so I remembered him; and you forgot Allah, so I forgot you."
Hadith Referenceالادب المفرد / كتاب العطاس والتثاؤب / 932