Abu Hurairah reported,

The Messenger of Allah ﷺ said, "The angels keep praying for one of you as long as he remains in the place where he prayed, provided he does not break his ablution. They say, 'Allah, forgive him. Allah, have mercy on him.' And one of you remains in a state of prayer as long as the prayer is what holds him back, with nothing preventing him from returning to his family except the prayer."

Azami 3042

Sahih

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

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

الأعظمي 3042صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Mosques
Section
Staying in the mosques and waiting for the prayer
Numbering
Jami al-Kamil 3042 (2nd edition)
Azami 3042