Abdullah bin Umar reported,

He used to kill snakes, then he forbade it. He said, "The Prophet ﷺ demolished a wall of his and found in it the shed skin of a snake. He said, 'Look where it is.' They looked, and he said, 'Kill it.' So I used to kill them because of that."

Bukhari 3310

Sahih

حدثني عمرو بن علي حدثنا ابن أبي عدي عن أبي يونس القشيري عن ابن أبي مليكة أن

ابن عمر

كان يقتل الحيات ثم نهى قال إن النبي ﷺ هدم حائطا له فوجد فيه سلخ حية فقال انظروا أين هو فنظروا فقال اقتلوه فكنت أقتلها لذلك

البخاري 3310صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Beginning of creation
Chapter
Best wealth of a Muslim is sheep he follows with to mountain peaks
Numbering
Darussalam 3310
Bukhari 3310