Sahih al-Bukhari 6597
Book 82: Divine Will (Al-Qadar) · Narrated by Ibn `Abbas
Arabic
حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ، حَدَّثَنَا غُنْدَرٌ، حَدَّثَنَا شُعْبَةُ، عَنْ أَبِي بِشْرٍ، عَنْ سَعِيدِ بْنِ جُبَيْرٍ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ قَالَ سُئِلَ النَّبِيُّ صلى الله عليه وسلم عَنْ أَوْلاَدِ الْمُشْرِكِينَ فَقَالَ " اللَّهُ أَعْلَمُ بِمَا كَانُوا عَامِلِينَ ".
English translation
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)
Reference: Sahih al-Bukhari 6597, Book of Divine Will (Al-Qadar). English translation by Dr. Muhammad Muhsin Khan.