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 . قال الشيخ الالباني : صحيح»