Sahih Bukhari
Beginning of Creation
Volume: 004 / Book Number: 054 / Hadith Number: 530
Narrated Nafi:
Ibn 'Umar used to kill snakes but when Abu Lubaba informed him that the Prophet had forbidden the killing of snakes living in houses, he gave up killing them.