كتاب الصلاة
4  
Prayer
(20a)
Chapter: What may not be done during Prayer and what is permitted - Section 1
(19)
بَابُ مَا لَا يَجُوزُ مِنَ الْعَمَلِ فِي الصَّلَاةِ وَمَا يُبَاحُ مِنْهُ - الفصل الأول
Mishkat al-Masabih 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.)
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: " إِنَّ عِفْرِيتًا مِنَ الْجِنِّ تَفَلَّتَ الْبَارِحَةَ لِيَقْطَعَ عَلَيَّ صَلَاتِي فَأَمْكَنَنِي اللَّهُ مِنْهُ فَأَخَذْتُهُ فَأَرَدْتُ أَنْ أَرْبِطَهُ عَلَى سَارِيَةٍ مِنْ سَوَارِي الْمَسْجِدِ حَتَّى تَنْظُرُوا إِلَيْهِ كُلُّكُمْ فَذَكَرْتُ دَعْوَةَ أَخِي سُلَيْمَانَ: (رَبِّ هَبْ لِي مُلْكًا لَا يَنْبَغِي لِأَحَدٍ مِنْ بَعْدِي) فَرَدَدْتُهُ خَاسِئًا "
  مُتَّفَقٌ عَلَيْهِ   (الألباني) حكم   :
Reference : Mishkat al-Masabih 987
In-book reference : Book 4, Hadith 408