Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Allah عز وجل loves sneezing and dislikes yawning. So when one of you sneezes and praises Allah, it is a duty upon every Muslim who hears him to say, 'May Allah have mercy on you.' But when one of you yawns, let him suppress it as much as he can, and let him not say 'Aah, aah,' for when one of you opens his mouth, Satan laughs at him."Hajjaj said in his version, "As for yawning, it is only from Satan."

Ahmad 9530

Sahih

حدثنا يحيى بن سعيد عن ابن أبي ذئب عن المقبري وحجاج قال أخبرنا ابن أبي ذئب حدثني سعيد بن أبي سعيد عن أبيه

عن أبي هريرة قال

قال رسول الله ﷺ إن الله عز وجل يحب العطاس ويكره التثاؤب فمن عطس فحمد الله فحق على من سمعه أن يقول يرحمك الله وإذا تثاءب أحدكم فليرده ما استطاع ولا يقل آه آه فإن أحدكم إذا فتح فاه فإن الشيطان يضحك منه أو به قال حجاج في حديثه وأما التثاؤب فإنما هو من الشيطان

أحمد 9530صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Hurairah
Numbering
Darussalam 9530
Ahmad 9530