عَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُمَا عَنِ الصَّعْبِ بْنِ جَثَّامَةَ رَضِيَ اللَّهُ عَنْهُ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قِيلَ لَهُ لَوْ أَنَّ خَيْلًا أَغَارَتْ مِنَ اللَّيْلِ فَأَصَابَتْ مِنْ أَبْنَاءِ الْمُشْرِكِينَ قَالَ هُمْ مِنْ آبَائِهِمْ
It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with him) that Sayyiduna Sa'b bin Jathamah (may Allah be pleased with him) reports: Someone asked the Messenger of Allah (peace and blessings be upon him): If a Muslim army attacks at night and among them the children of the polytheists are also killed, then what? The Prophet (peace and blessings be upon him) said: Those children are from among their parents.