Sahih al-Bukhari, Hadith 1383 ⓘ
Narrated Ibn `Abbas: Allah's Messenger (p.b.u.h) was asked about the children of (Mushrikeen) pagans. The Prophet replied, "Since Allah created them, He knows what sort of deeds they would have done."
حَدَّثَنَا حِبَّانُ، أَخْبَرَنَا عَبْدُ اللَّهِ، أَخْبَرَنَا شُعْبَةُ، عَنْ أَبِي بِشْرٍ، عَنْ سَعِيدِ بْنِ جُبَيْرٍ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهم ـ قَالَ سُئِلَ رَسُولُ اللَّهِ صلى الله عليه وسلم عَنْ أَوْلاَدِ الْمُشْرِكِينَ فَقَالَ " اللَّهُ إِذْ خَلَقَهُمْ أَعْلَمُ بِمَا كَانُوا عَامِلِينَ " .
also referenced under: Book 23, Hadith 136 (In-Book) & Volume 2, Book 23, Hadith 465 (USC-MSA)