Hadith 135

أَخْبَرَنَا النَّضْرُ، نا شُعْبَةُ، نا مُحَمَّدٌ، قَالَ: سَمِعْتُ أَبَا هُرَيْرَةَ، يَقُولُ: قَالَ رَسُولُ اللَّهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ: إِنَّ عِفْرِيتًا مِنَ الْجِنِّ جَعَلَ يَفْتِكَ بِي الْبَارِحَةَ لِيَقْطَعَ عَلَيَّ صَلَاتِي، فَأَمْكَنَنِي اللَّهُ مِنْهُ فَذَعَتُّهُ وَأَرَدْتُ أَنْ آخُذَهُ فَأَرْبِطَهُ إِلَى سَارِيَةٍ مِنْ سَوَارِي الْمَسْجِدِ حَتَّى تُصْبِحُوا فَتَنْظُرُوا إِلَيْهِ كُلُّكُمْ، قَالَ: فَذَكَرْتُ قَوْلَ أَخِي سُلَيْمَانَ: رَبِّ اغْفِرْ لِي وَهَبْ لِي مُلْكًا لَا يَنْبَغِي لِأَحَدٍ مِنْ بَعْدِي "، قَالَ: فَرَدَّهُ اللَّهُ خَاسِئًا.
Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: "Last night, a great jinn tried to distract me so that he could break my prayer, but Allah gave me control over him, so I pushed him away forcefully. I intended to catch him and tie him to one of the pillars of the mosque so that you all could see him in the morning." The Prophet (peace and blessings be upon him) said: "Then I remembered the supplication of my brother Sulaiman (peace be upon him): 'My Lord! Forgive me and grant me a kingdom such as shall not belong to anyone after me.' So Allah sent him back in disgrace."
Hadith Reference مسند اسحاق بن راهويه / كتاب الصلوٰة / 135
Hadith Takhrij «بخاري ، كتاب العمل فى الصلاة ، باب مايجوز من العمل فى الصلاة ، رقم : 1210 . مسلم ، كتاب المساجد ، باب جواز لعن الشيطان الخ ، رقم : 541 . مسند احمد : 298/2»