Sahih Muslim, Book 46, Hadith 44 (Muslim 6692)

Ibn Abbas reported that Allah's Messenger (ﷺ) was asked about the children of the polytheists, whereupon he said:

It is Allah alone Who knows what they would be doing according to their creation.