حَدَّثَنَا أَحْمَدُ بْنُ عَمْرِو بْنِ السَّرْحِ، حَدَّثَنَا سُفْيَانُ، عَنِ الزُّهْرِيِّ، عَنْ عُبَيْدِ اللَّهِ، - يَعْنِي ابْنَ عَبْدِ اللَّهِ - عَنِ ابْنِ عَبَّاسٍ، عَنِ الصَّعْبِ بْنِ جَثَّامَةَ، أَنَّهُ سَأَلَ النَّبِيَّ صلى الله عليه وسلم عَنِ الدَّارِ مِنَ الْمُشْرِكِينَ يُبَيَّتُونَ فَيُصَابُ مِنْ ذَرَارِيِّهِمْ وَنِسَائِهِمْ ‏.‏ فَقَالَ النَّبِيُّ صلى الله عليه وسلم ‏"‏ هُمْ مِنْهُمْ ‏"‏ ‏.‏ وَكَانَ عَمْرٌو - يَعْنِي ابْنَ دِينَارٍ - يَقُولُ هُمْ مِنْ آبَائِهِمْ ‏.‏ قَالَ الزُّهْرِيُّ ثُمَّ نَهَى رَسُولُ اللَّهِ صلى الله عليه وسلم بَعْدَ ذَلِكَ عَنْ قَتْلِ النِّسَاءِ وَالْوِلْدَانِ ‏.‏

Al Sa’b bin Jaththamah said that he asked the Apostle of Allaah(PBUH) about the polytheists whose settlemnst were attacked at night when some of their offspring and women were smitten. The Prophet(PBUH) “They are of them. ‘Amr bin Dinar used to say “they are regarded in the same way as their parents.” Al-Zuhri said: Thereafter the Messenger of Allah (PBUH) prohibited to kill women and children. Translation Not Available

Book Ref: Sunan Abi Dawud Book 15 Hadith 2672
Web Ref:  Sunan Abi Dawud Book 14 Hadith 2666