حَدَّثَنَا عَبْدُ اللهِ بْنُ أَحْمَدَ بْنِ حَنْبَلٍ قَالَ : حَدَّثَنِي إِبْرَاهِيمُ بْنُ الْحَجَّاجِ السَّامِيُّ قَالَ : نَا عَبْدُ الْعَزِيزِ بْنُ الْمُخْتَارِ ، عَنْ خَالِدٍ الْحَذَّاءِ ، عَنْ عِكْرِمَةَ ، عَنِ ابْنِ عَبَّاسٍ ، عَنِ النَّبِيِّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ قَالَ : الْحَيَّاتُ مَسْخُ الْجِنِّ ، كَمَا مُسِخَتِ الْقِرَدَةُ وَالْخَنَازِيرُ مِنْ بَنِي إِسْرَائِيلَ .
It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "Snakes are the transformed form of jinn, just as apes and swine were transformed from among the Children of Israel."