Sahih al-Bukhari, Book 82, Hadith 4 (Bukhari 6357)

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).