كتاب الصلاة
4  
Prayer
(8c)
Chapter: Mosques and places of Prayer - Section 3
(7)
باب المساجد ومواضع الصلاة - الفصل الثالث
Mishkat al-Masabih 749
‘Abdallah b. ‘Amr b. al-‘As said that God’s Messenger used to say on entering the mosque, “I seek refuge in God the mighty, in His noble being, and in His power which is from everlasting from the accursed devil.” He said that when the devil heard that he said, “He is protected from me for the rest of the day.” Abu Dawud transmitted it.
وَعَنْ عَبْدِ اللَّهِ بْنِ عَمْرِو بْنِ الْعَاصِ قَالَ: كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ إِذا دخل الْمَسْجِد قَالَ: «أَعُوذُ بِاللَّهِ الْعَظِيمِ وَبِوَجْهِهِ الْكَرِيمِ وَسُلْطَانِهِ الْقَدِيمِ مِنَ الشَّيْطَانِ الرَّجِيمِ» قَالَ: «فَإِذَا قَالَ ذَلِكَ قَالَ الشَّيْطَان حفظ مني سَائِر الْيَوْم» . رَوَاهُ أَبُو دَاوُد
  صَحِيحٌ   (الألباني) حكم   :
Reference : Mishkat al-Masabih 749
In-book reference : Book 4, Hadith 177