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.
bayhaqi:10045Abū ʿAbdullāh al-Ḥāfiẓ > Abū ʿAbdullāh Muḥammad b. Yaʿqūb > Aḥmad b. Sahl > Dāwud b. Rushayd > Ḥafṣ b. Ghiyāth > al-Aʿmash > Ibrāhīm > al-Aswad > ʿAbdullāh

[Machine] We were with the Messenger of Allah ﷺ in Mina when a snake appeared in front of us. The Messenger of Allah ﷺ said, "Kill it." We rushed to kill it, but it disappeared before we could reach it. The Messenger of Allah ﷺ then said, "Your enemy has been protected from you, just as you were protected from its harm."  

البيهقي:١٠٠٤٥أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنا أَبُو عَبْدِ اللهِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا أَحْمَدُ بْنُ سَهْلٍ ثنا دَاوُدُ بْنُ رُشَيْدٍ ثنا حَفْصُ بْنُ غِيَاثٍ ثنا الْأَعْمَشُ عَنْ إِبْرَاهِيمَ عَنِ الْأَسْوَدِ عَنْ عَبْدِ اللهِ قَالَ

كُنَّا مَعَ رَسُولِ اللهِ ﷺ بِمِنًى فَوَثَبَتْ عَلَيْنَا حَيَّةٌ فَقَالَ رَسُولُ اللهِ ﷺ اقْتُلُوهَا فَابْتَدَرْنَا فَسَبَقَتْنَا فَقَالَ رَسُولُ اللهِ ﷺ وُقِيَتْ شَرَّكُمْ كَمَا وُقِيتُمْ شَرَّهَا  

رَوَاهُ الْبُخَارِيُّ وَمُسْلِمٌ فِي الصَّحِيحِ عَنْ عُمَرَ بْنِ حَفْصٍ عَنْ أَبِيهِ

See similar narrations below:

Collected by Bukhārī, Ṭabarānī
bukhari:4930Maḥmūd > ʿUbaydullāh > Isrāʾīl > Manṣūr > Ibrāhīm > ʿAlqamah > ʿAbdullāh

We were with the Prophet ﷺ when Surat Wal-Mursalat was revealed to him. While we were receiving it from his mouth, a snake suddenly came and we ran to kill it, but it outstripped us and entered its hole quickly. Allah's le said, "It has escaped your evil, and you too, have escaped its evil."  

البخاري:٤٩٣٠حَدَّثَنِي مَحْمُودٌ حَدَّثَنَا عُبَيْدُ اللَّهِ عَنْ إِسْرَائِيلَ عَنْ مَنْصُورٍ عَنْ إِبْرَاهِيمَ عَنْ عَلْقَمَةَ عَنْ عَبْدِ اللَّهِ ؓ قَالَ

كُنَّا مَعَ رَسُولِ اللَّهِ ﷺ وَأُنْزِلَتْ عَلَيْهِ وَالْمُرْسَلاَتِ وَإِنَّا لَنَتَلَقَّاهَا مِنْ فِيهِ فَخَرَجَتْ حَيَّةٌ فَابْتَدَرْنَاهَا فَسَبَقَتْنَا فَدَخَلَتْ جُحْرَهَا فَقَالَ رَسُولُ اللَّهِ ﷺ وُقِيَتْ شَرَّكُمْ كَمَا وُقِيتُمْ شَرَّهَا  

tabarani:10149ʿAbd al-Raḥman b. Salm al-Rāzī > Sahl b. ʿUthmān > Ḥafṣ b. Ghiyāth > al-Aʿmash > Ibrāhīm > al-Aswad > ʿAbdullāh

[Machine] We were with the Prophet ﷺ in a cave in Mina, when a snake jumped towards us. The Messenger of Allah ﷺ said, "Kill it." We hurried to kill it, but it was faster than us. The Messenger of Allah ﷺ said, "Your evil has been prevented, just as its evil has been prevented."  

الطبراني:١٠١٤٩حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ سَلْمٍ الرَّازِيُّ ثنا سَهْلُ بْنُ عُثْمَانَ ثنا حَفْصُ بْنُ غِيَاثٍ عَنِ الْأَعْمَشِ عَنْ إِبْرَاهِيمَ عَنِ الْأَسْوَدِ عَنْ عَبْدِ اللهِ قَالَ

كُنَّا مَعَ النَّبِيِّ ﷺ فِي غَارٍ بِمِنًى فَوَثَبَتْ عَلَيْنَا حَيَّةٌ فَقَالَ رَسُولُ اللهِ ﷺ «اقْتُلُوهَا» فَابْتَدَرْنَاهَا فَسَبَقَتْنَا فَقَالَ رَسُولُ اللهِ ﷺ «وُقِيَتْ شَرَّكُمْ كَمَا وُقِيتُمْ شَرَّهَا»