It is narrated from Sayyidah Aishah (may Allah be pleased with her) that she said: "I asked the Messenger of Allah (peace and blessings be upon him) about the children of the polytheists, and he (peace and blessings be upon him) said: 'O Aishah! They are in the Fire.' I said: 'Then what do you say about the children of the Muslims?' He (peace and blessings be upon him) said: 'O Aishah! They are in Paradise.' She (may Allah be pleased with her) said: 'How can that be, when they had not yet reached (the age of) deeds, and the rulings of Islam had not yet applied to them?' He (peace and blessings be upon him) said: 'Your Lord, the Blessed and Exalted, knows best what they would have done.'"
Imam Abu Dawud (may Allah have mercy on him) recorded it with wording other than this.
It is narrated from Sayyidah Aishah (may Allah be pleased with her) that she said: "I asked the Messenger of Allah (peace and blessings be upon him): 'O Messenger of Allah! Where will the children of the Muslims be on the Day of Resurrection?' He (peace and blessings be upon him) said: 'O Aishah! They will be in Paradise.' I said: 'O Messenger of Allah! Then where will the children of the polytheists be?' He (peace and blessings be upon him) said: 'O Aishah! They will be in the Fire.' I said to him (peace and blessings be upon him): 'How can that be, when they had not reached the age of sin, and the pen of reckoning had not run over them?' He (peace and blessings be upon him) said: 'Indeed Allah Almighty has created (and knows well) what they would have done. If you wish, I will make you hear the sounds of their screaming and crying in the Fire.'"
I (al-Busiri) say: A hadith of Sayyidah Aishah (may Allah be pleased with her) is also in the Sahih (Bukhari) and elsewhere in abridged form: "If you wish, I will make you hear the sounds of their screaming in the Fire."
And these (hadith) have already passed in the Book of Faith: "Whoever dies in a certain state will be raised in that state" and "The likeness of the heart of the believer is that of a feather"; and this hadith will come, together with other hadith, in the Book of Funerals in the chapter "What has come regarding children".