Sunan Abi Dawud, Book 43, Hadith 481 (Abu Dawud 5255)

Abu Lubabah said:

The Messenger of Allah(ﷺ) prohibited killing the jinnan(small snakes) that are in the house, except the one which have two streaks and the one with small tail, for they obliterate the eyesight and cause miscarriage.