Sahih Muslim Book 26, Hadith Number 5551.

Chapter : Killing of snakes.

Nafi’ reported on the authority of his father that as ‘Abdullah b. ‘Umar saw one day (standing) near the ruin (of his house) the slough of a snake and said (to the people around him): Pursue this snake and kill it. Abu Lubaba Ansari said: I heard Allah’s Messenger (may peace be upon him). He forbade the killing of snakes found in the houses except the short-tailed snakes and those having streaks upon them, for both of them obliterate eyesight and affect that which is in the wombs of (pregnant) women.