Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:1492a

The Prophet ﷺ said, "Yawning is from Satan and if anyone of you yawns, he should check his yawning as much as possible, for if anyone of you (during the act of yawning) should say: 'Ha', Satan will laugh at him." (Using translation from Bukhārī 3289)   

السيوطي:١٤٩٢a

"إذا تَثاءَبَ أحدُكمُ فْليَرُدّه ما استطاع، فإنّ أَحَدَكم إذَا قال: ها ضَحِكَ منهُ الشيطانُ ".  

[خ] البخاري عن أبي هريرة

See similar narrations below:

Collected by Bukhārī, Suyūṭī
bukhari:3289ʿĀṣim b. ʿAlī > Ibn Abū Dhiʾb > Saʿīd al-Maqburī from his father > Abū Hurayrah

The Prophet ﷺ said, "Yawning is from Satan and if anyone of you yawns, he should check his yawning as much as possible, for if anyone of you (during the act of yawning) should say: 'Ha', Satan will laugh at him."  

البخاري:٣٢٨٩حَدَّثَنَا عَاصِمُ بْنُ عَلِيٍّ حَدَّثَنَا ابْنُ أَبِي ذِئْبٍ عَنْ سَعِيدٍ الْمَقْبُرِيِّ عَنْ أَبِيهِ عَنْ أَبِي هُرَيْرَةَ ؓ

عَنِ النَّبِيِّ ﷺ قَالَ التَّثَاؤُبُ مِنَ الشَّيْطَانِ فَإِذَا تَثَاءَبَ أَحَدُكُمْ فَلْيَرُدَّهُ مَا اسْتَطَاعَ فَإِنَّ أَحَدَكُمْ إِذَا قَالَ هَا ضَحِكَ الشَّيْطَانُ  

suyuti:10341a
Request/Fix translation

  

السيوطي:١٠٣٤١a

"التَّثَاؤُبُ مِنَ الشَّيطَانِ فَإِذَا تَثَاءَبَ فَليَرُدَّه ما اسْتَطَاعَ فَإِن أحَدَكُم إِذا قَال: هَا ضَحِك الشيطانُ".  

[خ] البخاري [م] مسلم عن أَبي هريرة