Sunan Abi Dawud
Sunan Abi Dawud 465
حَدَّثَنَا مُحَمَّدُ بْنُ عُثْمَانَ الدِّمَشْقِيُّ، حَدَّثَنَا عَبْدُ الْعَزِيزِ، - يَعْنِي الدَّرَاوَرْدِيَّ - عَنْ رَبِيعَةَ بْنِ أَبِي عَبْدِ الرَّحْمَنِ، عَنْ عَبْدِ الْمَلِكِ بْنِ سَعِيدِ بْنِ سُوَيْدٍ، قَالَ سَمِعْتُ أَبَا حُمَيْدٍ، أَوْ أَبَا أُسَيْدٍ الأَنْصَارِيَّ يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " إِذَا دَخَلَ أَحَدُكُمُ الْمَسْجِدَ فَلْيُسَلِّمْ عَلَى النَّبِيِّ صلى الله عليه وسلم ثُمَّ لْيَقُلِ اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ فَإِذَا خَرَجَ فَلْيَقُلِ اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ فَضْلِكَ " .
Muhammad ibn ʿUthman al-Dimashqi narrated to us: ʿAbd al-ʿAziz—meaning al-Darawardi—narrated to us, from Rabiʿah ibn Abi ʿAbd al-Rahman, from ʿAbd al-Malik ibn Saʿid ibn Suwayd, who said: I heard Abu Humayd or Abu Usayd al-Ansari say that the Messenger of Allah (peace and blessings be upon him) said: ‘When one of you enters the mosque, let him invoke blessings upon the Prophet (peace and blessings be upon him), then say: “O Allah, open for me the gates of Your mercy.” When he leaves, let him say: “O Allah, I ask You for Your bounty.”’