Sayyiduna Ibn Umar (may Allah be pleased with them both) narrates from Sayyiduna Abu Lubabah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) forbade killing the snakes that live in houses.
Hadith Referenceالمعجم الكبير للطبراني / باب الراء / 4486