Mishkat
al-Masabih
مشكاة المصابيح
Game and Animals Which May Be Slaughtered
كتاب الصيد والذبائح
Chapter 3a: Lawful and Unlawful Food - Section 1
باب ما يحل اكله وما يحرم - الفصل الأول
Mishkat al-Masabih 4117
Ibn ‘Umar told of hearing the Prophet (ﷺ) say, "Kill snakes, kill those which have two streaks and those with small tails, for they obliterate the eyesight and cause miscarriage." ‘Abdallah [i.e. Ibn Umar] said that while he was chasing a snake and trying to kill it Abu Lubaba called to him not to kill it, but he replied that Allah's Messenger ﷺ had given command that snakes should be killed. He then said that he had later prohibited killing house-snakes, for they are resident jinn. (Bukhari and Muslim.)
وَعَن ابْن عمر أَنَّهُ سَمِعَ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: " اقْتُلُوا الْحَيَّاتِ وَاقْتُلُوا ذَا الطُّفْيَتَيْنِ وَالْأَبْتَرَ فَإِنَّهُمَا يَطْمِسَانِ الْبَصَرَ وَيَسْتَسْقِطَانِ الْحَبَلَ قَالَ عَبْدُ اللَّهِ: فَبَيْنَا أَنَا أُطَارِدُ حَيَّةً أَقْتُلَهَا نَادَانِي أَبُو لُبَابَةَ: لَا تَقْتُلْهَا فَقُلْتُ: إِنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَمَرَ بِقَتْلِ الْحَيَّاتِ. فَقَالَ: إِنَّهُ نَهَى بَعْدَ ذَلِكَ عَنْ ذَوَات الْبيُوت وَهن العوامر
In-book reference: Mishkat al-Masabih Book 20 Chapter 3a Hadith 1