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.
muslim:2236aAbū al-Ṭāhir Aḥmad b. ʿAmr b. Sarḥ > ʿAbdullāh b. Wahb > Mālik b. Anas

I found him saying his prayer, so I sat down waiting for him to finish his prayer when I heard a stir in the bundles (of wood) lying in a comer of the house. I looked towards it and found a snake. I jumped up in order to kill it, but he (Abu Sa'id Khudri) made a gesture that I should sit down. So I sat down and as he finished (the prayer) he pointed to a room in the house and said: Do you see this room? I said: Yes. He said: There was a young man amongst us who had been newly wedded. We went with Messenger of Allah ﷺ (to participate in the Battle) of Trench when a young man in the midday used to seek permission from Messenger of Allah ﷺ to return to his family. One day he sought permission from him and Messenger of Allah ﷺ (after granting him the permission) said to him: Carry your weapons with you for I fear the tribe of Quraiza (may harm you). The man carried the weapons and then came back and found his wife standing between the two doors. He bent towards her smitten by jealousy and made a dash towards her with a spear in order to stab her. She said: Keep your spear away and enter the house until you see that which has made me come out. He entered and found a big snake coiled on the bedding. He darted with the spear and pierced it and then went out having fixed it in the house, but the snake quivered and attacked him and no one knew which of them died first, the snake or the young man. We came to Allah's Apostle ﷺ and made a mention to him and said: Supplicate to Allah that that (man) may be brought back to life. Thereupon he said: Ask forgiveness for your companion and then said: There are in Medina jinns who have accepted Islam, so when you see any one of them, pronounce a warning to it for three days, and if they appear before you after that, then kill it for that is a devil.  

مسلم:٢٢٣٦aوَحَدَّثَنِي أَبُو الطَّاهِرِ أَحْمَدُ بْنُ عَمْرِو بْنِ سَرْحٍ أَخْبَرَنَا عَبْدُ اللَّهِ بْنُ وَهْبٍ أَخْبَرَنِي مَالِكُ بْنُ أَنَسٍ عَنْ صَيْفِيٍّ وَهُوَ عِنْدَنَا مَوْلَى ابْنِ أَفْلَحَ أَخْبَرَنِي أَبُو السَّائِبِ مَوْلَى هِشَامِ بْنِ زُهْرَةَ

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


See similar narrations below:

Collected by Abū Dāwūd, Mālik, Aḥmad, Ibn Ḥibbān, Nasāʾī's Kubrá
abudawud:5257Yazīd b. Mawhab al-Ramlī > al-Layth > Ibn ʿAjlān

what is with you? I said : Here is a snake. He said : what do you want ? I said : I shall kill it. He then pointed to a room in his house in front of his room and said : My cousin (son of my uncle) was in this room. He asked his permission to go to his wife on the occasion of the battle of Troops (Ahzab), as he was recently married. The Messenger of Allah (May peace be upon him) gave him permission and ordered him to take his weapon with him. He came to his house and found his wife standing at the door of the house. When he pointed to her with the lance, she said; do not make haste till you see what has brought me out. He entered the house and found an ugly snake there. He pierced in the lance while it was quivering. He said : I do not know which of them died first, the man or the snake. His people then came to the Messenger of Allah (May peace be upon him) and said: supplicate Allah to restore our companion to life for us. He said : Ask forgiveness for your Companion. Then he said : In Medina a group of Jinn have embraced Islam, so when you see one of them, pronounce a waring to it three times and if it appears to you after that, kill it after three days.  

أبو داود:٥٢٥٧حَدَّثَنَا يَزِيدُ بْنُ مَوْهَبٍ الرَّمْلِيُّ حَدَّثَنَا اللَّيْثُ عَنِ ابْنِ عَجْلاَنَ عَنْ صَيْفِيٍّ أَبِي سَعِيدٍ مَوْلَى الأَنْصَارِ عَنْ أَبِي السَّائِبِ قَالَ

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

malik:54-33Mālik

Malik related to me from Safiyy, the mawla of Ibn Aflah that Abu's-Saib, the mawla of Hisham ibn Zuhra said, "I went to Abu Said al-Khudri and found him praying. I sat to wait for him until he finished the prayer. I heard a movement under a bed in his room, and it was a snake. I stood up to kill it, and Abu Said gestured to me to sit. When he was finished he pointed to a room in the house and said, 'Do you see this room?' I said, 'Yes.' He said, 'There was a young boy in it who had just got married. He went out with the Messenger of Allah ﷺ to al-Khandaq, (the ditch which the muslims dug in the 5th year of the Hijra to defend Madina against the Quraysh and their allies). When he was there, the youth came and asked his permission, saying, "Messenger of Allah. Give me permission to return to my family." The Messenger of Allah ﷺ gave him permission and said, "Take your weapons with you, for I fear the Banu Quraydha tribe. They may harm you." The youth went to his family and found his wife standing between the two doors. He lifted his spear to stab her as jealousy had been aroused in him. She said, "Don't be hasty until you go in and see what is in your house." He entered and found a snake coiled up on his bed. He transfixed it with his spear and then went out with it and pitched it into the house. The snake stirred on the end of the spear and the youth fell dead. No one knew which of them died first, the snake or the youth. That was mentioned to the Messenger of Allah ﷺ and he said, "There are jinn in Madina who have become muslim. When you see one of them, call out to it for three days. If it appears after that, then kill it, for it is a shaytan." "'  

مالك:٥٤-٣٣وَحَدَّثَنِي مَالِكٌ

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

ahmad:11369Yūnus > Layth > Ibn ʿAjlān

what is with you? I said : Here is a snake. He said : what do you want ? I said : I shall kill it. He then pointed to a room in his house in front of his room and said : My cousin (son of my uncle) was in this room. He asked his permission to go to his wife on the occasion of the battle of Troops (Ahzab), as he was recently married. The Messenger of Allah (May peace be upon him) gave him permission and ordered him to take his weapon with him. He came to his house and found his wife standing at the door of the house. When he pointed to her with the lance, she said; do not make haste till you see what has brought me out. He entered the house and found an ugly snake there. He pierced in the lance while it was quivering. He said : I do not know which of them died first, the man or the snake. His people then came to the Messenger of Allah (May peace be upon him) and said: supplicate Allah to restore our companion to life for us. He said : Ask forgiveness for your Companion. Then he said : In Medina a group of Jinn have embraced Islam, so when you see one of them, pronounce a waring to it three times and if it appears to you after that, kill it after three days. (Using translation from Abū Dāʾūd 5257)  

أحمد:١١٣٦٩حَدَّثَنَا يُونُسُ حَدَّثَنَا لَيْثٌ عَنِ ابْنِ عَجْلَانَ عَنْ صَيْفِيٍّ أَبِيسَعِيدٍ مَوْلَى الْأَنْصَارِ عَنْ أَبِي السَّائِبِ أَنَّهُ قَالَ

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

ذِكْرُ الْأَمْرِ بِقَتْلِ الْمَرْءِ الْحَيَّةَ إِذَا رَآهَا فِي دَارِهِ بَعْدَ إِعْلَامِهِ إِيَّاهَا ثَلَاثَةَ أَيَّامٍ وَلَاءً

ibnhibban:5637ʿUmar b. Saʿīd b. Sinān > Aḥmad b. Abū Bakr > Mālik

I found him saying his prayer, so I sat down waiting for him to finish his prayer when I heard a stir in the bundles (of wood) lying in a comer of the house. I looked towards it and found a snake. I jumped up in order to kill it, but he (Abu Sa'id Khudri) made a gesture that I should sit down. So I sat down and as he finished (the prayer) he pointed to a room in the house and said: Do you see this room? I said: Yes. He said: There was a young man amongst us who had been newly wedded. We went with Messenger of Allah ﷺ (to participate in the Battle) of Trench when a young man in the midday used to seek permission from Messenger of Allah ﷺ to return to his family. One day he sought permission from him and Messenger of Allah ﷺ (after granting him the permission) said to him: Carry your weapons with you for I fear the tribe of Quraiza (may harm you). The man carried the weapons and then came back and found his wife standing between the two doors. He bent towards her smitten by jealousy and made a dash towards her with a spear in order to stab her. She said: Keep your spear away and enter the house until you see that which has made me come out. He entered and found a big snake coiled on the bedding. He darted with the spear and pierced it and then went out having fixed it in the house, but the snake quivered and attacked him and no one knew which of them died first, the snake or the young man. We came to Allah's Apostle ﷺ and made a mention to him and said: Supplicate to Allah that that (man) may be brought back to life. Thereupon he said: Ask forgiveness for your companion and then said: There are in Medina jinns who have accepted Islam, so when you see any one of them, pronounce a warning to it for three days, and if they appear before you after that, then kill it for that is a devil. (Using translation from Muslim 2236a)   

ابن حبّان:٥٦٣٧أَخْبَرَنَا عُمَرُ بْنُ سَعِيدِ بْنِ سِنَانٍ قَالَ أَخْبَرَنَا أَحْمَدُ بْنُ أَبِي بَكْرٍ عَنْ مَالِكٍ عَنْ صَيْفِيٍّ مَوْلَى ابْنِ أَفْلَحَ عَنْ أَبِي السَّائِبِ مَوْلَى هِشَامِ بْنِ زُهْرَةَ

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

nasai-kubra:8820ʿAlī b. Shuʿayb al-Baghdādī > Maʿn > Mālik

I found him saying his prayer, so I sat down waiting for him to finish his prayer when I heard a stir in the bundles (of wood) lying in a comer of the house. I looked towards it and found a snake. I jumped up in order to kill it, but he (Abu Sa'id Khudri) made a gesture that I should sit down. So I sat down and as he finished (the prayer) he pointed to a room in the house and said: Do you see this room? I said: Yes. He said: There was a young man amongst us who had been newly wedded. We went with Messenger of Allah ﷺ (to participate in the Battle) of Trench when a young man in the midday used to seek permission from Messenger of Allah ﷺ to return to his family. One day he sought permission from him and Messenger of Allah ﷺ (after granting him the permission) said to him: Carry your weapons with you for I fear the tribe of Quraiza (may harm you). The man carried the weapons and then came back and found his wife standing between the two doors. He bent towards her smitten by jealousy and made a dash towards her with a spear in order to stab her. She said: Keep your spear away and enter the house until you see that which has made me come out. He entered and found a big snake coiled on the bedding. He darted with the spear and pierced it and then went out having fixed it in the house, but the snake quivered and attacked him and no one knew which of them died first, the snake or the young man. We came to Allah's Apostle ﷺ and made a mention to him and said: Supplicate to Allah that that (man) may be brought back to life. Thereupon he said: Ask forgiveness for your companion and then said: There are in Medina jinns who have accepted Islam, so when you see any one of them, pronounce a warning to it for three days, and if they appear before you after that, then kill it for that is a devil. (Using translation from Muslim 2236a)   

الكبرى للنسائي:٨٨٢٠أَخْبَرَنَا عَلِيُّ بْنُ شُعَيْبٍ الْبَغْدَادِيُّ قَالَ حَدَّثَنَا مَعْنٌ قَالَ حَدَّثَنَا مَالِكٌ عَنْ صَيْفِيٍّ مَوْلَى ابْنِ أَفْلَحَ عَنِ أَبِي السَّائِبِ مَوْلَى هِشَامِ بْنِ زُهْرَةَ أَنَّهُ §دَخَلَ عَلَى أَبِي سَعِيدٍ الْخُدْرِيِّ فِي بَيْتِهِ قَالَ «فَوَجَدْتُهُ يُصَلِّي فَجَلَسْتُ أَنْتَظِرُهُ حَتَّى يَقْضِيَ صَلَاتَهُ

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