Ayesha reported,

The Messenger of Allah ﷺ was invited to the funeral of a young boy from the Ansar. I said, "Messenger of Allah, how blessed is this child, a sparrow from the sparrows of Paradise. He committed no evil and did not live to encounter it."He replied, "Or perhaps otherwise, Ayesha. Allah created people for Paradise, and He created them for it while they were still in the loins of their fathers. And He created people for the Fire, and He created them for it while they were still in the loins of their fathers."

Ibn Majah 82

Sahih

حدثنا أبو بكر بن أبي شيبة وعلي بن محمد قالا حدثنا وكيع حدثنا طلحة بن يحيى بن طلحة بن عبيد الله عن عمته عائشة بنت طلحة

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

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

ابن ماجه 82صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Sunnah
Chapter
Decree
Numbering
Darussalam 82
Ibn Majah 82