Sunan an-Nasa'i · Hadith 1952
The Book of Funerals - كتاب الجنائز
أخبرني مجاهد بن موسى، عن هشيم، عن أبي بشر، عن سعيد بن جبير، عن ابن عباس، قال سئل النبي صلى الله عليه وسلم عن ذراري المشركين فقال " الله أعلم بما كانوا عاملين " .
It was narrated that Ibn 'Abbas said: "The Messenger of Allah was asked about he children of the idolators and he said: 'Allah knows best what they would have done."'
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).