2. Book of Ṣalāh

٢۔ كِتَابُ الصَّلَاةِ

2.115 [Machine] The saying upon entering the mosque

٢۔١١٥ بَابُ القوْلِ عِنْدَ دُخولِ الْمَسْجِدِ

darimi:1434Yaḥyá b. Ḥassān > ʿAbd al-ʿAzīz b. Muḥammad > Rabīʿah b. Abū ʿAbd al-Raḥman > ʿAbd al-Malik b. Saʿīd b. Sūwayd > Abū Ḥumayd or Abū Usayd al-Anṣārī

when any of you enters the mosque he should invoke blessing on the prophet ﷺ and then he should say: O Allah, open to me the gates of thy mercy. And when he goes out, he should say: O Allah, I ask thee out of Thine abundance. (Using translation from Abū Dāʾūd 465)  

الدارمي:١٤٣٤حَدَّثَنَا يَحْيَى بْنُ حَسَّانَ أَنْبَأَنَا عَبْدُ الْعَزِيزِ بْنُ مُحَمَّدٍ عَنْ رَبِيعَةَ بْنِ أَبِي عَبْدِ الرَّحْمَنِ عَنْ عَبْدِ الْمَلِكِ بْنِ سَعِيدِ بْنِ سُوَيْدٍ قَالَ

سَمِعْتُ أَبَا حُمَيْدٍ أَوْ أَبَا أُسَيْدٍ الْأَنْصَارِيَّ يَقُولُ قَالَ رَسُولُ اللَّهِ ﷺ إِذَا دَخَلَ أَحَدُكُمُ الْمَسْجِدَ فَلْيُسَلِّمْ عَلَى النَّبِيِّ ثُمَّ لِيَقُلْ اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ وَإِذَا خَرَجَ فَلْيَقُلْ اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ فَضْلِكَ