Full Sharh — Riyad as-Salihin 199
عن أبي هريرة رضي الله عنه أن النبي صلى الله عليه وسلم قال: "إن الله يحب العطاس، ويكره التثاؤب، فإذا عطس أحدكم وحمد الله تعالي كان حقاً علي كل مسلم سمعه أن يقول له:يرحمك الله، وأما التثاؤب فإنما هو من الشيطان، فإذا تثاءب أحدكم فليرده ما استطاع، فإن أحدكم إذا تثاءب ضحك منه الشيطان" ((رواه البخاري)).
English Translation
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." .
Source
Riyad as-Salihin(رياض الصالحين)
The Book of Greetings
Hadith Number
199