(37) باب قَتْلِ الْحَيَّاتِ وَغَيْرِهَا
Nafi' reported that Abu Lubaba talked to Ibn 'Umar to open a door in his house which would bring them nearer to the mosque and they found a fresh slough of the snake, whereupon 'Abdullah said:
Find it out and kill it. Abu Lubaba said: Don't kill them, for Allah's Messenger (ﷺ) forbade the killing of the snakes found in houses.
Reference: Sahih Muslim 2233 d
In-book reference: Book 39, Hadith 179
USC-MSA web (English) reference(deprecated numbering scheme): Book 26, Hadith 5546