Abu Hurairah reported,

The Prophet ﷺ said, "Allah loves sneezing and dislikes yawning. When one of you sneezes and praises Allah, it is the duty of every Muslim who hears him to say, 'May Allah have mercy on you.' As for yawning, it comes 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."

Azami 14146

Sahih

عن أبي هريرة

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

الأعظمي 14146صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Characteristics of Muslims, and their rights upon one another
Section
One who yawns should put his hand over his mouth
Numbering
Jami al-Kamil 14146 (2nd edition)
Azami 14146