Translation
(82) Divine Will (Al-Qadar)
كتاب القدر
(3) Chapter: It is Allah Who knows what they would have done
(3) باب اللَّهُ أَعْلَمُ بِمَا كَانُوا عَامِلِينَ
Sahih al-Bukhari 6598 

Narrated Abu Huraira:

Allah's Messenger (ﷺ) 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 6598
In-book reference : Book 82, Hadith 5
USC-MSA web (English) reference : Vol. 8, Book 77, Hadith 597
  (deprecated numbering scheme)