The son of Abu Said al-Khudri reported on the authority of his father that Messenger of Allah ﷺ said. When one of you yawns while engaged in prayer, he should try to restrain so far as it lies in his power, since it is the Satan that enter therein.
قَالَ رَسُولُ اللَّهِ ﷺ إِذَا تَثَاوَبَ أَحَدُكُمْ فِي الصَّلاَةِ فَلْيَكْظِمْ مَا اسْتَطَاعَ فَإِنَّ الشَّيْطَانَ يَدْخُلُ