Sahih Bukhari · Hadith 1383
Funerals (Al-Janaa'iz) - كتاب الجنائز
حدثنا حبان، أخبرنا عبد الله، أخبرنا شعبة، عن أبي بشر، عن سعيد بن جبير، عن ابن عباس رضى الله عنهم قال سئل رسول الله صلى الله عليه وسلم عن أولاد المشركين فقال " الله إذ خلقهم أعلم بما كانوا عاملين ".
Narrated Ibn `Abbas: Allah's Apostle (p.b.u.h) was asked about the children of (Mushrikeen) pagans. The Prophet replied, "Since Allah created them, He knows what sort of deeds they would have done."
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).