كتاب السلام
5  
The Book of Greetings
(142)
Chapter: Saying "Al-Hamdulillah" When Sneezing, Its Reply, and Manners Relating to Sneezing and Yawning
(142)
- باب استحباب تشميت العاطس إذا حمد الله تعالى وكراهة تشميته إذا لم يحمد الله تعالى و بيان آداب التشميت و العطاس والتثاؤب
Riyad as-Salihin 878
Abu Hurairah (May Allah be pleased with him) reported:
The Prophet (ﷺ) said, "Allah likes sneezing and dislikes yawning. When any one of you sneezes and says `Al-hamdu lillah (praise be to Allah)', it becomes obligatory upon every Muslim who hears him to respond with `Yarhamuk-Allah (may Allah have mercy on you)'. Yawning is from the devil. When one of you feels like yawning, he should restrain it as much as possible, for the devil laughs when one of you yawns."


[Al-Bukhari].

عن أبي هريرة رضي الله عنه أن النبي صلى الله عليه وسلم قال‏:‏ ‏ "‏إن الله يحب العطاس، ويكره التثاؤب، فإذا عطس أحدكم وحمد الله تعالي كان حقاً علي كل مسلم سمعه أن يقول له‏:‏يرحمك الله، وأما التثاؤب فإنما هو من الشيطان، فإذا تثاءب أحدكم فليرده ما استطاع، فإن أحدكم إذا تثاءب ضحك منه الشيطان‏"‏ ‏(‏‏(‏رواه البخاري‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 878
In-book reference : Book 5, Hadith 35