Ayesha reported,

A boy from the Ansar was brought to the Prophet ﷺ for him to perform the funeral prayer over.Ayesha said, "I said, 'Messenger of Allah, how blessed is this child! He committed no evil and never knew it.'"He replied, "Or it could be otherwise, Ayesha. Indeed, Allah created Paradise and created for it inhabitants, and created them for it while they were still in the loins of their fathers. And He created the Fire and created for it inhabitants, and created them for it while they were still in the loins of their fathers."

Abu Dawud 4713

Sahih

حدثنا محمد بن كثير أخبرنا سفيان عن طلحة بن يحيى عن عائشة بنت طلحة

عن عائشة أم المؤمنين قالت

أتي النبي ﷺ بصبي من الأنصار يصلي عليه قالت قلت يا رسول الله طوبى لهذا لم يعمل شرا ولم يدر به فقال أو غير ذلك يا عائشة إن الله خلق الجنة وخلق لها أهلا وخلقها لهم وهم في أصلاب آبائهم وخلق النار وخلق لها أهلا وخلقها لهم وهم في أصلاب آبائهم

أبو داود 4713صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Sunnah
Chapter
Children of the polytheists
Numbering
Darussalam 4713
Abu Dawud 4713