Jami` at-Tirmidhi 330
Grading supplied with this record: Sahih (Darussalam)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
لاَ يَزَالُ أَحَدُكُمْ فِي صَلاَةٍ مَا دَامَ يَنْتَظِرُهَا وَلاَ تَزَالُ الْمَلاَئِكَةُ تُصَلِّي عَلَى أَحَدِكُمْ مَا دَامَ فِي الْمَسْجِدِ اللَّهُمَّ اغْفِرْ لَهُ اللَّهُمَّ ارْحَمْهُ مَا لَمْ يُحْدِثْ "
Abu Hurairah narrated that :
Allah's Messenger said: "One of you does not cease to be in Salat as long as he is waiting for it. And the angels do not cease praying for one of you as long as he remains in the Masjid (saying): 'Allah! Forgive him. O Allah! Have mercy upon him' - as long as he does not commit Hadath." A man from Hadramawt said: "And just what is Hadath Abu Hurairah?" He said: "Breaking wind, or passing gas."
Full reference and source
Jami` at-Tirmidhi 330 In-book : Book 2, Hadith 182 English translation : Vol. 1, Book 2, Hadith 330
View source on Sunnah.com (opens in a new tab)