The servant is constantly in prayer so long as he is in a place of worship waiting for the…

Sahih Muslim Book 5 Hadith 345

Sahih Muslim #649 i

The Book of Mosques and Places of Prayer 5:345

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.

Chapter: The virtue of offering the obligatory prayers in congregation, the virtue of waiting for prayer and taking many steps towards the masjid, the virtue of walking to the masjid

Grade: Sahih