The Prophet ﷺ 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.' As for yawning, it is only from Satan. So when one of you yawns, let him suppress it as much as he can, for when one of you yawns, Satan laughs at him."
حدثنا عاصم بن علي حدثنا ابن أبي ذئب عن سعيد المقبري عن أبيه
عن النبي ﷺ قال إن الله يحب العطاس ويكره التثاؤب فإذا عطس أحدكم وحمد الله كان حقا على كل مسلم سمعه أن يقول له يرحمك الله وأما التثاؤب فإنما هو من الشيطان فإذا تثاءب أحدكم فليرده ما استطاع فإن أحدكم إذا تثاءب ضحك منه الشيطان