كتاب الزهد والرقائق
55  
The Book of Zuhd and Softening of Hearts
(9)
Chapter: Saying: "May Allah Have Mercy On You" To One Who Sneezes, And Yawning Is Disliked
(9)
باب تَشْمِيتِ الْعَاطِسِ وَكَرَاهَةِ التَّثَاؤُبِ
Sahih Muslim 2994

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

The yawning as from the devil. So when one of you yawns he should try to restrain it as far as it lies in his power.
حَدَّثَنَا يَحْيَى بْنُ أَيُّوبَ، وَقُتَيْبَةُ بْنُ سَعِيدٍ، وَعَلِيُّ بْنُ حُجْرٍ السَّعْدِيُّ، قَالُوا حَدَّثَنَا إِسْمَاعِيلُ، - يَعْنُونَ ابْنَ جَعْفَرٍ - عَنِ الْعَلاَءِ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ التَّثَاؤُبُ مِنَ الشَّيْطَانِ فَإِذَا تَثَاءَبَ أَحَدُكُمْ فَلْيَكْظِمْ مَا اسْتَطَاعَ ‏"‏ ‏.‏
Reference : Sahih Muslim 2994
In-book reference : Book 55, Hadith 73
USC-MSA web (English) reference : Book 42, Hadith 7129
  (deprecated numbering scheme)