The prayer that made him let something go
A jinn tried to break his prayer and he had hold of it.
إِنَّ عِفْرِيتًا مِنَ الْجِنِّ جَعَلَ يَفْتِكُ عَلَىَّ الْبَارِحَةَ لِيَقْطَعَ عَلَىَّ الصَّلاَةَ وَإِنَّ اللَّهَ أَمْكَنَنِي مِنْهُ فَذَعَتُّهُ فَلَقَدْ هَمَمْتُ أَنْ أَرْبِطَهُ إِلَى جَنْبِ سَارِيَةٍ مِنْ سَوَارِي الْمَسْجِدِ حَتَّى تُصْبِحُوا تَنْظُرُونَ إِلَيْهِ أَجْمَعُونَ - أَوْ كُلُّكُمْ - ثُمَّ ذَكَرْتُ قَوْلَ أَخِي سُلَيْمَانَ رَبِّ اغْفِرْ لِي وَهَبْ لِي مُلْكًا لاَ يَنْبَغِي لأَحَدٍ مِنْ بَعْدِي . فَرَدَّهُ اللَّهُ خَاسِئًا
I remembered the supplication of my brother Sulaymān: my Lord, forgive me and grant me a kingdom such as will not belong to anyone after me. So I let it go, humiliated.
The full narration
Abu Huraira reported that he heard the Messenger of Allah (ﷺ) saying:A highly wicked one amongst the Jinn escaped yesternight to interrupt my prayer, but Allah 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, all together or all, might look at him, but I remembered the supplication of my brother Sulaiman:" My Lord, forgive me, give me such a kingdom as will not be possible for anyone after me" (Qur'an, xxxvii)
Source
Ṣaḥīḥ Muslim · 1209
- Agreed upon as authentic (al-Bukhārī / Muslim)