Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)

Bukhari :: Book 5 :: Volume 59 :: Hadith 352

Narrated Nafi: Ibn 'Umar used to kill all kinds of snakes until Abu Lubaba Al-Badri told him that the Prophet had forbidden the killing of harmless snakes living in houses and called Jinan. So Ibn 'Umar gave up killing them.

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star