Sunan an-Nasa'i · Hadith 1949
The Book of Funerals - كتاب الجنائز
أخبرنا إسحاق، قال أنبأنا سفيان، عن الزهري، عن عطاء بن يزيد الليثي، عن أبي هريرة، قال سئل رسول الله صلى الله عليه وسلم عن أولاد المشركين فقال " الله أعلم بما كانوا عاملين " .
It was narrated that Abu Hurairah said: "The Messenger of Allah was asked about the 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).