Sayyiduna Abu Hurairah (may Allah be pleased with him) narrated from the Messenger of Allah (peace and blessings be upon him), he (peace be upon him) said: "When any one of you waits for prayer while sitting on his prayer place, he is considered to be in prayer, and the angels say: O Allah! Forgive him, have mercy on him, (this continues) until he gets up and leaves or commits a bad hadath." It was asked: What is a bad hadath? He said: "That he passes wind audibly or silently."
Hadith Referenceمسند اسحاق بن راهويه / كتاب الصلوٰة / 128
Hadith Takhrij«سنن ترمذي ، ابواب الصلاة ، باب القعود فى المسجد الخ ، رقم : 330 . معجم الاوسط طبراني ، رقم : 1747 . قال الشيخ الالباني : صحيح»
Saeed bin Musayyib (may Allah have mercy on him) narrated from Sayyiduna Abu Saeed Khudri (may Allah be pleased with him) from the Prophet Muhammad (peace and blessings be upon him) a narration similar to the previous hadith.
Hadith Referenceمسند اسحاق بن راهويه / كتاب الصلوٰة / 129