[Machine] "O Abu Hurairah, remember two things from me that I advise you with when you enter the mosque: pray upon the Prophet Muhammad ﷺ and say, 'O Allah, open for me the doors of Your mercy.' And when you exit the mosque, pray upon the Prophet Muhammad ﷺ and say, 'O Allah, protect me from Satan, the rejected one.' This was narrated by Sa'id bin Abu Sa'id al-Maqburi from his father from Abu Hurairah from Ka'b."
يَا أَبَا هُرَيْرَةَ احْفَظْ مِنِّي اثْنَتَيْنِ أُوصِيكَ بِهِمَا إِذَا دَخَلْتَ الْمَسْجِدَ فَصَلِّ عَلَى النَّبِيِّ ﷺ وَقُلِ اللهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ وَإِذَا خَرَجْتَ مِنَ الْمَسْجِدِ فَصَلِّ عَلَى النَّبِيِّ ﷺ وَقُلِ اللهُمَّ احْفَظْنِي مِنَ الشَّيْطَانِ خَالَفَهُ ابْنُ أَبِي ذِئْبٍ رَوَاهُ عَنْ سَعِيدِ بْنِ أَبِي سَعِيدٍ الْمَقْبُرِيِّ عَنْ أبيه عَنْ أَبِي هُرَيْرَةَ عَنْ كَعْبٍ