Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tabarani:8826ʿAlī b. ʿAbd al-ʿAzīz > Abū Nuʿaym from my father

[Machine] Abdullah ibn Mas'ud met a man from the companions of the Prophet ﷺ , who was struggling with a jinn. The man was able to overpower the jinn, and the jinn asked the man to let him go. The man agreed on the condition that the jinn teach him something beneficial if he overpowered him for a third time. The man overpowered the jinn again, and the jinn said, "I see you as weak and thin, like the offspring of a dog. That is how you and the jinn are." The man replied, "No, by Allah, I am not one of them. Rather, let me overpower you for the third time, and if I do, you must teach me something beneficial." The man overpowered the jinn again, and then he asked the jinn to teach him. The man asked, "Can you recite the Ayat al-Kursi?" The jinn replied, "Yes." The man said, "You will not recite it inside a house, but the Shaytan will leave the house with a noise like that of a donkey. It will not enter the house until morning." A man from the people asked, "O Abu Abdullah! Who is that man from the companions of Muhammad ﷺ ?" Abdullah ibn Mas'ud frowned and approached him, saying, "Who could it be but Umar?"  

الطبراني:٨٨٢٦حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ الْعَزِيزِ ثنا أَبُو نُعَيْمٍ ثنا أَبُو عَاصِمٍ الثَّقَفِيُّ حَدَّثَنِي الشَّعْبِيُّ قَالَ قَالَ

عَبْدُ اللهِ بْنُ مَسْعُودٍ لَقِيَ رَجُلٌ مِنْ أَصْحَابِ النَّبِيِّ ﷺ رَجُلًا مِنَ الْجِنِّ فَصَارَعَهُ فَصَرَعَهُ الْإِنْسِيُّ فَقَالَ لَهُ الْجِنِّيُّ عَاوِدْنِي فَعَاوَدَهُ فَصَرَعَهُ فَقَالَ لَهُ الْإِنْسِيُّ إِنِّي لَأَرَاكَ ضَئِيلًا شَحِيبًا كَأَنَّ ذُرَيِّعَتَيْكَ ذُرَيِّعَتَا كَلْبٍ فَكَذَلِكَ أَنْتُمْ مَعْشَرَ الْجِنِّ أَوْ أَنْتَ مِنْهُمْ كَذَلِكَ قَالَ لَا وَاللهِ إِنِّي مِنْهُمْ لَضَلِيعٌ وَلَكِنْ عَاوِدْنِي الثَّالِثَةَ فَإِنْ صَرَعْتَنِي عَلَّمْتُكَ شَيْئًا يَنْفَعُكَ فَعَاوَدَهُ فَصَرَعَهُ قَالَ هَاتِ عَلِّمْنِي قَالَ هَلْ تَقْرَأُ آيَةَ الْكُرْسِيِّ؟ قَالَ نَعَمْ قَالَ إِنَّكَ لَنْ تَقْرَأَهَا فِي بَيْتٍ إِلَّا خَرَجَ مِنْهُ الشَّيْطَانُ لَهُ خَبَجٌ كَخَبَجِ الْحِمَارِ لَا يَدْخُلُهُ حَتَّى يُصْبِحَ قَالَ رَجُلٌ مِنَ الْقَوْمِ يَا أَبَا عَبْدِ الرَّحْمَنِ مَنْ ذَاكَ الرَّجُلُ مِنْ أَصْحَابِ مُحَمَّدٍ ﷺ؟ قَالَ فَعَبَسَ عَبْدُ اللهِ وَأَقْبَلَ عَلَيْهِ وَقَالَ مَنْ يَكُونُ هُوَ إِلَّا عُمَرُ ؓ   


See similar narrations below:

Collected by Dārimī
darimi:3424Abū Nuʿaym

[Machine] To him is the knowledge of the unseen, indeed I see you weak and feeble, just like the progeny of a dog. Are you amongst the jinn or are you one of them? He said, "No, I am one of them, but I am a special one. However, restore it to me if you overpower me, for I will teach you something beneficial." So he overpowered him and caused him to submit. He said, "Bring it, teach me." He said, "Yes." He said, "Do you recite 'Allah, there is no deity except Him, the Ever-Living, the Sustainer of existence'?" He said, "Yes." He said, "If you recite it in a house, the devil will leave it, and there will be buzzing noise in it like the buzzing noise of a donkey. Then, the devil will not enter it until morning." Abu Muhammad Ad-Da'eel Ad-Daqiq said, "Ad-Daqiq is the small, Ad-Dahiq is the thin one, Ad-Dali' is one with good ribs, and Al-Khabaj is the wind."  

الدارمي:٣٤٢٤حَدَّثَنَا أَبُو نُعَيْمٍ حَدَّثَنَا أَبُو عَاصِمٍ الثَّقَفِيُّ حَدَّثَنَا الشَّعْبِيُّ قَالَ قَالَ عَبْدُ اللَّهِ بْنُ مَسْعُودٍ لَقِيَ رَجُلٌ مِنْ أَصْحَابِ مُحَمَّدٍ ﷺ رَجُلًا مِنَ الْجِنِّ فَصَارَعَهُ فَصَرَعَهُ الْإِنْسِيُّ فَقَالَ

لَهُ الْإِنْسِيُّ إِنِّي لَأَرَاكَ ضَئِيلًا شَخِيتًا كَأَنَّ ذُرَيِّعَتَيْكَ ذُرَيِّعَتَا كَلْبٍ فَكَذَاكَ أَنْتُمْ مَعْشَرَ الْجِنِّ أَمْ أَنْتَ مِنْ بَيْنِهِمْ كَذَلِكَ؟ قَالَ لَا وَاللَّهِ إِنِّي مِنْهُمْ لَضَلِيعٌ وَلَكِنْ عَاوِدْنِي الثَّانِيَةَ فَإِنْ صَرَعْتَنِي عَلَّمْتُكَ شَيْئًا يَنْفَعُكَ فَعَاوَدَهُ فَصَرَعَهُ قال هَاتِ عَلِّمْنِي قَالَ نَعَمْ قَالَ تَقْرَأُ {اللَّهُ لَا إِلَهَ إِلَّا هُوَ الْحَيُّ الْقَيُّومُ} [البقرة 255]؟ قَالَ نَعَمْ قَالَ فَإِنَّكَ لَا تَقْرَؤُهَا فِي بَيْتٍ إِلَّا خَرَجَ مِنْهُ الشَّيْطَانُ لَهُ خَبَجٌ كَخَبَجِ الْحِمَارِ ثُمَّ لَا يَدْخُلُهُ حَتَّى يُصْبِحَ قَالَ أَبُو مُحَمَّد الضَّئِيلُ الدَّقِيقُ وَالشَّخِيتُ الْمَهْزُولُ وَالضَّلِيعُ جَيِّدُ الْأَضْلَاعِ وَالْخَبَجُ الرِّيحُ