عن أبي هريرة رضي الله عنه مرفوعًا: «التَّثَاؤُبُ في الصلاة من الشَّيطان؛ فإذا تَثَاءَبَ أحدكم فَليَكْظِم ما اسْتَطاع».
Yawning inside the prayer is from the devil, because it occurs when the body is heavy, relaxed, full of food, and when the person is feeling lax and sleepy. It is the devil who calls for giving the self whatever it desires and supplying it with abundant food and drink. Therefore, when someone who is offering the prayer begins to yawn, or feels like yawning, he should suppress it as much as possible, by shutting his lips and teeth tight.
He should do this so that the devil would not accomplish his aim of distorting the image of the praying person, entering his mouth, and laughing at him. If he cannot suppress yawning, then he should place his hand over his mouth.
Download for free and never miss a prayer again