Abu Huraira reported God’s Messenger as saying, “An ‘ifrit of the jinn escaped yesterday to interrupt my prayer, but God gave me power over him, so I seized him and intended to tie him to one of the pillars of the mosque in order that you might all look at him; but I remembered the supplication of my brother Solomon, ‘My Lord, give me such a kingdom as will not be fitting for anyone after me’ (Al-Qur’an; 38:35) so I made him clear out.” (Bukhari and Muslim.)
Hadith Referenceمشكوة المصابيح / كتاب الصلاة / 987
Hadith Gradingالألبانی:مُتَّفَقٌ عَلَيْهِ | زبیر علی زئی:متفق عليه
Hadith Takhrij´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «متفق عليه، رواه البخاري (461) و مسلم (39/ 541)»