حَدَّثَنَا أَحْمَدُ بْنُ عَمْرِو بْنِ السَّرْحِ، حَدَّثَنَا سُفْيَانُ، عَنِ الزُّهْرِيِّ، عَنْ عُبَيْدِ اللَّهِ، - يَعْنِي ابْنَ عَبْدِ اللَّهِ - عَنِ ابْنِ عَبَّاسٍ، عَنِ الصَّعْبِ بْنِ جَثَّامَةَ، أَنَّهُ سَأَلَ النَّبِيَّ صلى الله عليه وسلم عَنِ الدَّارِ مِنَ الْمُشْرِكِينَ يُبَيَّتُونَ فَيُصَابُ مِنْ ذَرَارِيِّهِمْ وَنِسَائِهِمْ ‏.‏ فَقَالَ النَّبِيُّ صلى الله عليه وسلم ‏"‏ هُمْ مِنْهُمْ ‏"‏ ‏.‏ وَكَانَ عَمْرٌو - يَعْنِي ابْنَ دِينَارٍ - يَقُولُ هُمْ مِنْ آبَائِهِمْ ‏.‏ قَالَ الزُّهْرِيُّ ثُمَّ نَهَى رَسُولُ اللَّهِ صلى الله عليه وسلم بَعْدَ ذَلِكَعَنْ قَتْلِ النِّسَاءِ وَالْوِلْدَانِ ‏.‏
Translation
Al Sa’b bin Jaththamah said that he asked the Apostle of Allaah(ﷺ) about the polytheists whose settlemnst were attacked at night when some of their offspring and women were smitten. The Prophet(ﷺ) “They are of them. ‘Amr bin Dinar used to say “they are regarded in the same way as their parents.”Al-Zuhri said

Al-Sa'b ibn Jaththamah asked the Prophet (ﷺ) about the polytheists' settlements being raided at night, resulting in some of their offspring and women being struck. The Prophet (ﷺ) replied, 'They are from them.' Amr (meaning ibn Dinar) used to say, 'They are from their fathers.' Al-Zuhri said, 'Thereafter the Messenger of Allah (ﷺ) prohibited the killing of women and children.'