Sahih Muslim
The Book on Salutations and Greetings (Kitab As-Salam)
Book Number: 026 / Hadith Number: 5547
Nafi' reported that Ibn 'Urnar used to kill all types of snakes until Abu Lubaba b. 'Abd al-Mundhir Badri reported that Allah's Messenger (may peace be upon him) had forbidden the killing of the snakes of the houses, and so he abstained from it.