Al-Adab Al-Mufrad, Book 40, Hadith 919 (English) ⓘ
Abu Hurayra reported that the Prophet, may Allah bless him and grant him peace, said, "Allah loves sneezing and hates yawning. When one of you sneezes and praises Allah Almighty, it is a duty for every Muslim who hears him to say to him, 'May Allah have mercy on you.' Yawning comes from Shaytan. When one of you yawns, he should control it as much as possible. When a man says, 'Aawh!,' Shaytan laughs at him."
حَدَّثَنَا آدَمُ، قَالَ: حَدَّثَنَا ابْنُ أَبِي ذِئْبٍ، قَالَ: حَدَّثَنَا سَعِيدٌ الْمَقْبُرِيُّ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ: إِنَّ اللَّهَ يُحِبُّ الْعُطَاسَ، وَيَكْرَهُ التَّثَاؤُبَ، فَإِذَا عَطَسَ فَحَمِدَ اللَّهَ فَحَقٌّ عَلَى كُلِّ مُسْلِمٍ سَمِعَهُ أَنْ يُشَمِّتَهُ، وَأَمَّا التَّثَاؤُبُ فَإِنَّمَا هُوَ مِنَ الشَّيْطَانِ، فَلْيَرُدَّهُ مَا اسْتَطَاعَ، فَإِذَا قَالَ: هَاهْ، ضَحِكَ مِنْهُ الشَّيْطَانُ.
also referenced under: Hadith 919 (Reference) & Book 40, Hadith 919 (In-Book)