حَدَّثَنِي خَلِيفَةُ، حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ الأَنْصَارِيُّ، حَدَّثَنَا سَعِيدٌ، عَنْ قَتَادَةَ، عَنْ أَنَسٍ ـ رضى الله عنه ـ قَالَ مَاتَ أَبُو زَيْدٍ وَلَمْ يَتْرُكْ عَقِبًا، وَكَانَ بَدْرِيًّا‏.‏
Translation
Narrated Nafi`

Ibn `Umar used to kill all kinds of snakes until Abu Lubaba Al-Badri told him that the Prophet (ﷺ) had forbidden the killing of harmless snakes living in houses and called Jinan. So Ibn `Umar gave up killing them.