Sahih al-Bukhari 3423
Book 60: Prophets · Hadith 95
Hadith text
Narrated Abu Huraira: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
Abu Huraira bataate hain: Nabi ne kaha, "Kal ek taakatvaar jin mujhpar achanak hamla karne aaya taake meri namaz kharab kar sake, magar Allah ne mujhe uspar kaboo paane ki taakat di, aur maine use pakad liya aur socha ke use masjid ke ek khambe se baandhun taake tum sab use dekh sako, magar mujhe apne bhai Sulaiman ki dua yaad aee: 'Aur mujhe ek aisi badshahat de jo mere baad kisi aur ko na mile' (38:35) isliye maine use laanit karke chhod diya."
Sahih al-Bukhari 3423 · Book 60, Hadith 95