Abu Hurairah reported,

The Prophet ﷺ said, "Allah loves sneezing and dislikes yawning. When someone sneezes and praises Allah, every Muslim who hears him is obligated to respond with a blessing. As for yawning, it comes from Satan, so let him suppress it as much as he can. When he says, 'Haa,' Satan laughs at him."

Azami 11288

Sahih

عن أبي هريرة

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

الأعظمي 11288صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Supplications for various occasions
Section
Praising Allah for sneezing and responding to one who sneezes
Numbering
Jami al-Kamil 11288 (2nd edition)
Azami 11288