Al-Adab Al-Mufrad, Book 40, Hadith 930 (In-Book)

Abu Hurayra said, "We were sitting with the Messenger of Allah, may Allah bless him and grant him peace, when a man sneezed and praised Allah. The Messenger of Allah, may Allah bless him and grant him peace, said to him, 'May Allah have mercy on you.' Then another man sneezed but the Prophet did not say anything to him. The man, 'Messenger of Allah! you responded to the other man, but did not say anything to me!' The Prophet replied, 'He praised Allah and you were silent.'"

حَدَّثَنَا إِسْحَاقُ، قَالَ‏:‏ أَخْبَرَنَا يَعْلَى، قَالَ‏:‏ أَخْبَرَنَا أَبُو مُنَيْنٍ وَهُوَ يَزِيدُ بْنُ كَيْسَانَ، عَنْ أَبِي حَازِمٍ، عَنْ أَبِي هُرَيْرَةَ قَالَ‏:‏ كُنَّا جُلُوسًا عِنْدَ رَسُولِ اللهِ صلى الله عليه وسلم فَعَطَسَ رَجُلٌ فَحَمِدَ اللَّهَ، فَقَالَ لَهُ رَسُولُ اللهِ صلى الله عليه وسلم‏:‏ يَرْحَمُكَ اللَّهُ، ثُمَّ عَطَسَ آخَرُ، فَلَمْ يَقُلْ لَهُ شَيْئًا، فَقَالَ‏:‏ يَا رَسُولَ اللهِ، رَدَدْتَ عَلَى الْآخَرِ، وَلَمْ تَقُلْ لِي شَيْئًا‏؟‏ قَالَ‏:‏ إِنَّهُ حَمِدَ اللَّهَ، وَسَكَتَّ‏.‏

sunnah.com