The Book on Salutations and Greetings (Kitab As-Salam)

Muslim :: Book 26 : Hadith 5544

Salim, on the authority of his father. reported Allah's Apostle (may peace be upon him) as saying: Kill the snakes having stripes over them and short-tailed snakes, for these two types cause miscarriage (of a pregnant woman) and they affect the eyesight adversely. So Ibn 'Umar used to kill every snake that he found. Abu Lubaba b. 'Abd al-Mundhir and Zaid b. Khattab saw him pursuing a snake, whereupon he said: They were forbidden (to kill) those snakes who live in houses.

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