Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "A strong demon from among the jinn came to me last night to spoil my prayer, but Allah enabled me to overpower him. At first, I intended to catch him and tie him to one of the pillars of the mosque so that all of you could see him. The Prophet (peace and blessings be upon him) said: Then I remembered the statement of my brother, Sayyiduna Sulaiman (peace be upon him): 'My Lord, forgive me and grant me a kingdom such as will not belong to anyone after me.' The Prophet (peace and blessings be upon him) said: So Allah made that devil return in disgrace."
Hadith Referenceصحیح ابن حبان / كتاب التاريخ / 6419
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - مضى (2343). تنبيه!! رقم (2343) = (2349) من «طبعة المؤسسة». - مدخل بيانات الشاملة -.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط الشيخين