Abu Hurairah reported,

The Messenger of Allah ﷺ said, "The angels continue to pray for one of you as long as he remains in the place where he prayed. They say, 'Allah, forgive him. Allah, have mercy on him,' so long as he does not break his ablution. And each of you is considered to be in prayer as long as the prayer is what keeps him waiting."

Muslim 1508

Sahih

و حدثنا ابن أبي عمر حدثنا سفيان عن أيوب السختياني عن ابن سيرين

عن أبي هريرة قال

قال رسول الله ﷺ إن الملائكة تصلي على أحدكم ما دام في مجلسه تقول اللهم اغفر له اللهم ارحمه ما لم يحدث وأحدكم في صلاة ما كانت الصلاة تحبسه

مسلم 1508صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
Virtue of congregational prayer and waiting for prayer
Numbering
Darussalam 1508
Muslim 1508