(49) باب فَضْلِ صَلاَةِ الْجَمَاعَةِ وَانْتِظَارِ الصَّلاَةِ
Abu Huraira reported Allah's Messenger (ﷺ) as saying:
The servant is constantly in prayer so long as he is in a place of worship waiting for the prayer (to be observed in congregation), and the angels invoke (blessings upon him in these words): O Allah! pardon him. O Allah! show mercy to him, (and they continue to do so) till he returns (from the mosque having completed the prayer) or his ablution breaks. I said: How is the ablution broken? He said: By breaking of the wind noiselessly or with noise.
Reference: Sahih Muslim 649 i
In-book reference: Book 5, Hadith 345
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1397