Full Sharh — Mishkat al-Masabih 3951
وَعَن ابْن عمر أَنَّهُ سَمِعَ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: " اقْتُلُوا الْحَيَّاتِ وَاقْتُلُوا ذَا الطُّفْيَتَيْنِ وَالْأَبْتَرَ فَإِنَّهُمَا يَطْمِسَانِ الْبَصَرَ وَيَسْتَسْقِطَانِ الْحَبَلَ قَالَ عَبْدُ اللَّهِ: فَبَيْنَا أَنَا أُطَارِدُ حَيَّةً أَقْتُلَهَا نَادَانِي أَبُو لُبَابَةَ: لَا تَقْتُلْهَا فَقُلْتُ: إِنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَمَرَ بِقَتْلِ الْحَيَّاتِ. فَقَالَ: إِنَّهُ نَهَى بَعْدَ ذَلِكَ عَنْ ذَوَات الْبيُوت وَهن العوامر
English Translation
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 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 God'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.)
Source
Mishkat al-Masabih(مشكاة المصابيح)
Game and Animals Which May Be Slaughtered
Hadith Number
3951