Sunan an-Nasa'i, Volume 3, Book 24, Hadith 2886 (DarusSalam) ⓘ
It was narrated that Abdullah said: "We were with the Messenger of Allah in Al-Khaif, which is in Mina, when the following was revealed: 'By the winds sent forth one after another.' A snake came out, and the Messenger of Allah said: 'Kill it.' So they rushed to kill, but it went back into its hole."
أَخْبَرَنَا أَحْمَدُ بْنُ سُلَيْمَانَ، قَالَ حَدَّثَنَا يَحْيَى بْنُ آدَمَ، عَنْ حَفْصِ بْنِ غِيَاثٍ، عَنِ الأَعْمَشِ، عَنْ إِبْرَاهِيمَ، عَنِ الأَسْوَدِ، عَنْ عَبْدِ اللَّهِ، قَالَ كُنَّا مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم بِالْخَيْفِ مِنْ مِنًى حَتَّى نَزَلَتْ { وَالْمُرْسَلاَتِ عُرْفًا } فَخَرَجَتْ حَيَّةٌ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " اقْتُلُوهَا " . فَابْتَدَرْنَاهَا فَدَخَلَتْ فِي جُحْرِهَا .
also referenced under: Hadith 2883 (Reference) & Book 24, Hadith 0 (In-Book)