It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both), from Sayyiduna Abu Lubabah bin Abd al-Mundhir and Sayyiduna Zayd bin al-Khattab (may Allah be pleased with them both), that the Prophet (peace and blessings be upon him) forbade killing the snakes that live in houses.
Hadith Referenceالمعجم الكبير للطبراني / باب الزاي / 4630