The Prophet (ﷺ) said, "A strong demon from the Jinns came to me yesterday suddenly, so as to spoil my prayer, but Allah enabled me to overpower him, and so I caught him and intended to tie him to one of the pillars of the Mosque so that all of you might see him, but I remembered the invocation of my brother Solomon: 'And grant me a kingdom such as shall not belong to any other after me.' (38:35) so I let him go cursed."
Reference: Sahih al-Bukhari 3423 In-book : Book 60, Hadith 95 USC-MSA web (English) : Vol. 4, Book 55, Hadith 634 (deprecated)
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.