Hadith 987
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: إِنَّ عِفْرِيتًا مِنَ الْجِنِّ تَفَلَّتَ الْبَارِحَةَ لِيَقْطَعَ عَلَيَّ صَلَاتِي فَأَمْكَنَنِي اللَّهُ مِنْهُ فَأَخَذْتُهُ فَأَرَدْتُ أَنْ أَرْبِطَهُ عَلَى سَارِيَةٍ مِنْ سَوَارِي الْمَسْجِدِ حَتَّى تَنْظُرُوا إِلَيْهِ كُلُّكُمْ فَذَكَرْتُ دَعْوَةَ أَخِي سُلَيْمَانَ: (رَبِّ هَبْ لِي مُلْكًا لَا يَنْبَغِي لِأَحَدٍ مِنْ بَعْدِي) فَرَدَدْتُهُ خَاسِئًا
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.)