Sahih al-Bukhari
Sahih al-Bukhari 4016, 4017
حَدَّثَنَا أَبُو النُّعْمَانِ، حَدَّثَنَا جَرِيرُ بْنُ حَازِمٍ، عَنْ نَافِعٍ، أَنَّ ابْنَ عُمَرَ ـ رضى الله عنهما ـ كَانَ يَقْتُلُ الْحَيَّاتِ كُلَّهَا. حَتَّى حَدَّثَهُ أَبُو لُبَابَةَ الْبَدْرِيُّ، أَنَّ النَّبِيَّ صلى الله عليه وسلم نَهَى عَنْ قَتْلِ جِنَّانِ الْبُيُوتِ، فَأَمْسَكَ عَنْهَا.
Abu al-Nuʿman narrated to us: Jarir ibn Hazim narrated to us, from Nafiʿ, that Ibn ʿUmar (may God be pleased with them both) used to kill all snakes. Then Abu Lubaba al-Badri told him that the Prophet (peace and blessings be upon him) had forbidden killing snakes that live in houses, so Ibn ʿUmar stopped killing them.
Translation notes
The phrase “jinnan of houses” refers to snakes found in dwellings; the report says Ibn ʿUmar stopped killing them after hearing the prohibition.