Abu Hurairah reported,

The Prophet ﷺ said, "Allah loves sneezing and dislikes yawning. When one of you sneezes and praises Allah, every Muslim who hears him is obliged to invoke mercy upon him. As for yawning, it is from Satan, so let him suppress it as much as he can, for when he says 'haa,' Satan laughs at him."

Bukhari 6223

Sahih

حدثنا آدم بن أبي إياس حدثنا ابن أبي ذئب حدثنا سعيد المقبري عن أبيه

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

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

البخاري 6223صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Manners
Chapter
What is recommended regarding sneezing and what is disliked regarding yawning
Numbering
Darussalam 6223
Bukhari 6223