
Amr ibn Al-As, Allah be pleased with him narrates from the messenger of Allah, Allah send peace and blessings upon him that when he would enter the Masjid he would say:
I seek refuge in Allah the Magnificent, His noble face and in His pre-eternal domain from the accursed devil
Uqbah (one of the narrators) asked Haywah, has only this much of the Hadeeth reached you from me? Haywah says I replied ”Yes”. Uqbah then added, that when one recites this Dua, Shaytan says, he has been protected from me for the rest of the day.
حَدَّثَنَا إِسْمَاعِيلُ بْنُ بِشْرِ بْنِ مَنْصُورٍ، حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ، عَنْ عَبْدِ اللَّهِ بْنِ الْمُبَارَكِ، عَنْ حَيْوَةَ بْنِ شُرَيْحٍ، قَالَ لَقِيتُ عُقْبَةَ بْنَ مُسْلِمٍ فَقُلْتُ لَهُ بَلَغَنِي أَنَّكَ حَدَّثْتَ عَنْ عَبْدِ اللَّهِ بْنِ عَمْرِو بْنِ الْعَاصِ، عَنِ النَّبِيِّ صلى الله عليه وسلم أَنَّهُ كَانَ إِذَا دَخَلَ الْمَسْجِدَ قَالَ:
أَعُوذُ بِاللَّهِ الْعَظِيمِ وَبِوَجْهِهِ الْكَرِيمِ وَسُلْطَانِهِ الْقَدِيمِ مِنَ الشَّيْطَانِ الرَّجِيمِ
قَالَ أَقَطُّ قُلْتُ نَعَمْ . قَالَ فَإِذَا قَالَ ذَلِكَ قَالَ الشَّيْطَانُ حُفِظَ مِنِّي سَائِرَ الْيَوْمِ
(رواه أبو داود، باب في ما يقوله الرجل عند دخوله المسجد)