Sahih al-Bukhari, Hadith 6597 ⓘ
Narrated Ibn `Abbas: The Prophet ; was asked about the offspring of the pagans. He said, "Allah knows what they would have done (were they to live).
حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ، حَدَّثَنَا غُنْدَرٌ، حَدَّثَنَا شُعْبَةُ، عَنْ أَبِي بِشْرٍ، عَنْ سَعِيدِ بْنِ جُبَيْرٍ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ قَالَ سُئِلَ النَّبِيُّ صلى الله عليه وسلم عَنْ أَوْلاَدِ الْمُشْرِكِينَ فَقَالَ " اللَّهُ أَعْلَمُ بِمَا كَانُوا عَامِلِينَ " .
also referenced under: Book 82, Hadith 4 (In-Book) & Volume 8, Book 77, Hadith 596 (USC-MSA)