(18) باب فِيمَا يَقُولُهُ الرَّجُلُ عِنْدَ دُخُولِهِ الْمَسْجِدَ
Haiwah b. Shuraih reported :
I met 'Uqbah b. Muslim and said to him: it has been reported to me that someone has narrated to you from the prophet (ﷺ) that when he entered the mosque, he would say: I seek refuge in Allah, the Magnificent, and in His noble face, and in his eternal domain, from the accursed Devil. He asked : is it so much only? I said: Yes. He said: when anyone says so. The devil says: he is protected from me all the day long.
Reference: Sunan Abi Dawud 466
In-book reference: Book 2, Hadith 76
English translation: Book 2, Hadith 466