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:2236bMuḥammad b. Rāfiʿ > Wahbb. Jarīr b. Ḥāzim from my father > Asmāʾ b. ʿUbayd > a man Yuqāl Lah al-Sāʾib Wahū ʿIndanā Abū al-Sāʾib

We visited Abu Sa'id Khudri. When we had been sitting (with him) we heard a stir under his bed. When we looked we found a big snake, the rest of the hadith is the same. And in this Messenger of Allah ﷺ is reported to have said: Verily in these houses there live aged (snakes), so when you see one of them, make life hard for it for three days, and if it goes away (well and good), otherwise kill it for (in that case) it would be a nonbeliever. And he (the Holy Prophet) said (to his Companions): Go and bury your companion (who had died by the snake bite).  

مسلم:٢٢٣٦bوَحَدَّثَنِي مُحَمَّدُ بْنُ رَافِعٍ حَدَّثَنَا وَهْبُ بْنُ جَرِيرِ بْنِ حَازِمٍ حَدَّثَنَا أَبِي قَالَ سَمِعْتُ أَسْمَاءَ بْنَ عُبَيْدٍ يُحَدِّثُ عَنْ رَجُلٍ

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


See similar narrations below:

Collected by Nasāʾī's Kubrá
nasai-kubra:10743ʿAbd al-Raḥman b. Muḥammad b. Salām > Yazīd > Jarīr b. Ḥāzim > Asmāʾ b. ʿUbayd > a man from Ahl al-Madīnah Yuqāl Lah al-Sāʾib

[Machine] We were with Abu Sa'id al-Khudri, who was sitting on his bed. We saw a snake under his bed, so we said, "O Abu Sa'id, there is a snake under the bed?" He replied, "Do not provoke it. The Messenger of Allah ﷺ said, 'Indeed, these houses have guardians. So if you see anything from them, be cautious three times. If it disappears, then fine. Otherwise, kill it, for it is a disbeliever.'" This is a summary.  

الكبرى للنسائي:١٠٧٤٣أَخْبَرَنَا عَبْدُ الرَّحْمَنِ بْنُ مُحَمَّدِ بْنِ سَلَامٍ قَالَ حَدَّثَنَا يَزِيدُ قَالَ أَخْبَرَنَا جَرِيرُ بْنُ حَازِمٍ عَنْ أَسْمَاءِ بْنِ عُبَيْدٍ عَنْ رَجُلٍ مِنْ أَهْلِ الْمَدِينَةِ يُقَالُ لَهُ السَّائِبُ قَالَ

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