Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
hakim:7681Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Bakkār b. Qutaybah al-Qāḍī Bimiṣr > Ṣafwān b. ʿĪsá > al-Ḥārith b. ʿAbd al-Raḥman b. Abū Dhubāb > Saʿīd al-Maqburī > Abū Hurayrah

[Machine] The Messenger of Allah ﷺ said, "When Allah Almighty created Adam and blew the spirit into him, Adam sneezed and said, 'Alhamdulillah' (praise be to Allah). So Allah praised him with His permission and said, 'May Allah have mercy on you, O Adam.'"  

الحاكم:٧٦٨١حَدَّثَنَا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثَنَا بَكَّارُ بْنُ قُتَيْبَةَ الْقَاضِي بِمِصْرَ ثَنَا صَفْوَانُ بْنُ عِيسَى ثَنَا الْحَارِثُ بْنُ عَبْدِ الرَّحْمَنِ بْنِ أَبِي ذُبَابٍ عَنْ سَعِيدٍ الْمَقْبُرِيِّ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ لَمَّا خَلَقَ اللَّهُ ﷻ آدَمَ وَنَفَخَ فِيهِ الرُّوحَ عَطَسَ فَقَالَ الْحَمْدُ لِلَّهِ فَحَمِدَ اللَّهَ بِإِذْنِ اللَّهِ فَقَالَ لَهُ رَبُّهُ يَرْحَمُكَ اللَّهُ يَا آدَمُ  

«هَذَا حَدِيثٌ صَحِيحُ الْإِسْنَادِ وَلَمْ يُخَرِّجَاهُ» صحيح

See similar narrations below:

Collected by Ibn Ḥibbān

ذِكْرُ حَمْدِ آدَمَ رَبَّهُ لَمَّا خَلْقَهُ بِإِلْهَامِهِ جَلَّ وَعَلَا إِيَّاهُ ذَلِكَ

ibnhibban:6164Abū ʿArūbah > Yaḥyá b. Muḥammad b. al-Sakan > Ḥabbān b. Hilāl > Mubārak b. Faḍālah > ʿUbaydullāh b. ʿUmar > Khubayb b. ʿAbd al-Raḥman > Ḥafṣ b. ʿĀṣim > Abū Hurayrah

[Machine] The Messenger of Allah ﷺ said, "When Allah created Adam, Adam sneezed and his Lord inspired him to say, 'Alhamdulillah' (Praise be to Allah). His Lord said to him, 'May Allah have mercy on you, hence His mercy preceded His anger.'"  

ابن حبّان:٦١٦٤أَخْبَرَنَا أَبُو عَرُوبَةَ حَدَّثَنَا يَحْيَى بْنُ مُحَمَّدِ بْنِ السَّكَنِ حَدَّثَنَا حَبَّانُ بْنُ هِلَالٍ حَدَّثَنَا مُبَارَكُ بْنُ فَضَالَةَ عَنْ عُبَيْدِ اللَّهِ بْنِ عُمَرَ عَنْ خُبَيْبِ بْنِ عَبْدِ الرَّحْمَنِ عَنْ حَفْصِ بْنِ عَاصِمٍ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ «لَمَّا خَلَقَ اللَّهُ آدَمَ عَطَسَ فَأَلْهَمَهُ رَبُّهُ أَنْ قَالَ الْحَمْدُ لِلَّهِ فَقَالَ لَهُ رَبُّهُ يَرْحَمُكَ اللَّهُ فَلِذَلِكَ سَبَقَتْ رَحْمَتُهُ غَضَبَهُ»