كتاب الصلاة
4  
Prayer
(20a)
Chapter: What may not be done during Prayer and what is permitted - Section 1
(19)
بَابُ مَا لَا يَجُوزُ مِنَ الْعَمَلِ فِي الصَّلَاةِ وَمَا يُبَاحُ مِنْهُ - الفصل الأول
Mishkat al-Masabih 985, 986
Abu Sa'id reported God’s Messenger as saying, “When one of you yawns during prayer he must restrain it as much as possible, for the devil gets in.” Muslim transmitted it. In a version by Bukhari from Abu Huraira he said, “When one of you yawns during prayer he must restrain it as much as possible and not say ‘Ha’, for that comes from the devil who is laughing at him.”(Or “at it”, i.e. at this action).
وَعَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا تَثَاءَبَ أَحَدُكُمْ فَلْيَكْظِمْ مَا اسْتَطَاعَ فَإِنَّ الشَّيْطَانَ يَدْخُلُ» . رَوَاهُ مُسلم

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

  صَحِيح, صَحِيح   (الألباني) حكم   :
Reference : Mishkat al-Masabih 985, 986
In-book reference : Book 4, Hadith 407