Ayesha reported,

Ayesha said, "A child died, so I said, 'How blessed he is, a sparrow among the sparrows of Paradise.'"The Messenger of Allah ﷺ replied, "Do you not know that Allah created Paradise and created the Hellfire, and He created inhabitants for this and inhabitants for that?"In another narration, the Messenger of Allah ﷺ was called to the funeral of a child from the Ansar.Ayesha said, "Messenger of Allah, how blessed is this one, a sparrow among the sparrows of Paradise. He committed no evil, nor did evil reach him."He said, "Or perhaps otherwise, Ayesha. Allah created people for Paradise, He created them for it while they were still in the loins of their fathers. And He created people for the Hellfire, He created them for it while they were still in the loins of their fathers."

Azami 1034

Sahih

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

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

الأعظمي 1034صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Belief in the divine decree and predestination
Section
Allah created people for Paradise and created people for Hell
Numbering
Jami al-Kamil 1034 (2nd edition)
Azami 1034