Abdullah bin Abbas reported,

I do not know it except that he raised the hadith. He said, the Prophet ﷺ used to command the killing of snakes and would say, "Whoever leaves them out of fear or apprehension of revenge is not one of us."He said, and Ibn Abbas said, "The jann are transformed jinn, just as monkeys were transformed from the Children of Israil."

Ahmad 3254

Sahih

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

عن ابن عباس قال

لا أعلمه إلا رفع الحديث قال كان يأمر بقتل الحيات ويقول من تركهن خشية أو مخافة تأثير فليس منا قال وقال ابن عباس إن الجان مسيخ الجن كما مسخت القردة من بني إسرائيل

أحمد 3254صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Abbas bin Abdul-Muttalib
Numbering
Darussalam 3254
Ahmad 3254