Sunan Ibn Majah
Sunan Ibn Majah 799
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا أَبُو مُعَاوِيَةَ، عَنِ الأَعْمَشِ، عَنْ أَبِي صَالِحٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ " إِنَّ أَحَدَكُمْ إِذَا دَخَلَ الْمَسْجِدَ كَانَ فِي صَلاَةٍ مَا كَانَتِ الصَّلاَةُ تَحْبِسُهُ وَالْمَلاَئِكَةُ يُصَلُّونَ عَلَى أَحَدِكُمْ مَادَامَ فِي مَجْلِسِهِ الَّذِي صَلَّى فِيهِ يَقُولُونَ اللَّهُمَّ اغْفِرْ لَهُ اللَّهُمَّ ارْحَمْهُ اللَّهُمَّ تُبْ عَلَيْهِ مَا لَمْ يُحْدِثْ فِيهِ مَا لَمْ يُؤْذِ فِيهِ " .
Unreviewed translation. All hadiths in this collection are available in five languages. Titles and introductions may remain in Arabic.
Abu Bakr ibn Abi Shaybah narrated to us: Abu Mu'awiyah narrated to us, from al-A'mash, from Abu Salih, from Abu Hurayrah, who said: The Messenger of Allah (peace and blessings be upon him) said: ‘When one of you enters the mosque, he is in prayer for as long as the prayer keeps him there. The angels invoke blessings upon one of you for as long as he remains in the place where he prayed, saying: “O Allah, forgive him; O Allah, have mercy on him; O Allah, accept his repentance”—so long as he does not invalidate his ablution or cause harm there.’’
Notes and open questions — unreviewed
The source gives the angels' three-part supplication and two conditions: the person does not break his ablution and does not cause harm in the place.