The Messenger of Allah (saw) was asked about the children of the Mushrikeen, and he said, “Allah who created them knows best what they would have done”. [on the authority of Ibn ‘Abbaas, Saheeh al-Bukhaari, Kitaab al-Janaa’iz, Baab ma qilaa fi awlaad al-Mushrikeen, Fath al-Baari, 3/246]
Abu Hurayrah (ra) reported that the Prophet (saw) said, “Every child is born in a state of fitrah [the natural state of man] and his parents make him a Jew or a Christian, or a Magian, just as an animal produces a perfect baby animal: do you find it mutilated?” [Saheeh al-Bukhaari, Kitaab al-Janaa’iz, Baab ma qilaa fi awlaad al-Mushrikeen, Fath al-Baari, 3/246]
As Ibn Hajar said, “al-Bukhaari may Allah have mercy on him, indicating that he was refraining from giving an opinion on the children of the mushrikeen.
Later in his Saheeh, in the tafseer of Surat ar-Rum, he indicates that he favored the suggestion that they are in Paradise. He also organized the hadith in this chapter in such a way that shows this was his favored opinion. He starts with a hadith that indicates that we cannot say one way or the other, then quotes a hadith that indicates that they are in Paradise, and follows that with a hadith that clearly states that this is the case:
“As for the children around him, they are the children of mankind.” In another version, “As for the two children around him, every child is born in a state of fitrah.” Some of the Muslims asked, “Even the children of the Mushrikeen?” He said, “Even the children of the mushrikeen”
Ibn Hajar said, “This is supported by the hadith of Anas reported by Abu Ya’la, in which the Prophet (saw) said, “I asked my Rabb for the laheen [those who play or those who are unaware] of the children of mankind, that they would not be punished, and that was granted to me.” [its isnaad is hasan] Laheen was explained as meaning children, because of the hadith of ibn ‘Abbaas narrated by al-Bazzar. Ahmad reported from al-Khansaa bint Mu’aawiyah ibn Suraym from her paternal aunt who said, “I said, “O Messenger of Allah, who is in Paradise?” He said, “Prophets are in Paradise, martyrs are in Paradise and newborn babies are in Paradise”. Its isnaad is hasan. [Fath al-Baari, 3/246]
They also took as evidence the hadith, “The children of the mushrikeen are servants of the people of Paradise” [Ibn Mandah in al-Ma’rifah, Abu Na’eem in al-Hilyah, Abu Ya’la in al-Musnad and al-Albaani deemed it saheeh by the sum of its isnaad, Silsilat al-Hadith as-Saheehah, 3/452, no. 1468]
The idea that they are in Paradise is the opinion of some scholars, such as favored by Abul-Faraj Ibn al-Jawzee [Majmu’ Fataawa, 24/382, 4/303] an-Nawawi said of this opinion, “This is the correct position favored by those who study the words of Allah, “… And We never punish until We have sent a Messenger [to give warning]” [17:15]” [Fath al-Baari, 3/247]
al-Qurtubee also considered this the most likely t be corrected, reconciling the apparently conflicting reports by saying that the Prophet (saw) initially said they would be in Hell with their parents, then he refrained from passing any judgment and said “Allah knows best what they would have done”, then it was revealed to him that no one would be punished for the sins of another [17:15] so he stated that they would be in Paradise [at-Tadhkirah, p.515]. The trouble with this way of reconciliation, as Ibn Hajar said, is that this is not a matter that can be subjected to study and examination. It is a matter of al-Ghayb, which can only be known through revelation. And Allah knows best.
Some scholars, such as Hammaad ibn Zayd, Hammaad ibn Salamah, Ibn al-Mubaarak and Ishaaq, say that they are subject to the will of Allah. It was also transmitted by al-Bayhaqee in al-I’tiqaad from ash-Shaaf’iee. Ibn ‘Abdul-Barr said “This might be the opinion of Maalik, although there is no written evidence for that” [Majmu’ Fatawah, 4/281-404, 24/372] and Abul-Hasan al-Ash’ari attributed this opinion to Ahlus-Sunnah wal-Jama’ah, [Majmu’ Fatawah, 24/372].
This is also the favored view of Ibn Taymiyyah, who suggested that they will be tested on the day of Resurrection – “The correct view is what was said concerning them, Allah knows best what they would have done”. We cannot say of any particular individual that he will be in Paradise or Hell. Several hadiths state that on the Day of Resurrection, they will be tested in the arena of judgment: they will be given commands and prohibitions and those who obey will enter Paradise, whilst those who disobey will be sent to Hell.” He attributed this to Imaam Ahmad and Abul-Hasan al-Ash’ari, who attributed it to Ahlus-Sunnah [Majmu’ Fataawa, 24/372, 4/303, 4/281].
Ibn Hajar also stated that they would be tested in the Hereafter by being shown the Fire: whoever enters it will find it cool and safe, but whoever refuses to enter it will be punished. Ahadeeth to this effect was reported by al-Bazzar from Anas and Abu Sa’eed and by at-Tabaraani from Mu’aadh ibn Jabal. It has been proven through saheeh asaanid that the insane and those who lived between the time of Jesus (as) and Muhammad (saw) will also be tested in the Hereafter. al-Bayhaqee stated in al-I’tiqaad that this is the correct opinion. [Fath al-Baari 3/246].
The soundness of this opinion is indicated by the clear, unambiguous aayaat of the Qur’an, which tells the story of the righteous slave whom Musa (as) traveled to meet at the junction of the two seas. Explaining the reason why he killed the boy, he said, “And as for the boy, his parents were believers, and we feared lest he should oppress them by rebellion and disbelief” [18:80].
Muslim reports from Ibn ‘Abbaas (ra) “The Messenger of Allah (saw) said, concerning the boy was killed by al-Khidr, “He was decreed from the beginning to be a kaafir and if he had been left, he would have oppressed his parents with his rebellion and disbelief.” Commenting on this hadith, Ibn Taymiyyah said “It means that Allah decreed it in Umm al-Kitaab [the Register Book in Jannah] i.e. it was written that he would be a kaafir and if he had lived he would have been a kaafir indeed.”
al-Qurtubee said, in at-Tadhkirah [p.514]: “What makes this idea [that they will be tested in the Hereafter] weak is the fact that the Hereafter is not the place of testing; it is the place of recompense – the reward of punishment. al-Hulaymee said, “This hadith is not proven to be sound, and it contradicts the basic beliefs of the Muslims because the Hereafter is not the place of testing. Everyone will inevitably know about Allah, and there is no test when a thing is inevitable.”
This is incorrect and was refuted by Shaykh al-Islaam Ibn Taymiyyah, who said, “Responsibility only ceases when one enters the abode of recompense, which is either Paradise or Hell. In the arena of judgment, they will be tested just as they are tested in al-Barzakh. The individual will be asked, “Who is your Rabb? What is your deen? Who is your Prophet?” Allah (swt) says, “[Remember] the Day when the Shin shall be laid bare, and they shall be called to prostrate to Allah, but they [hypocrites] will not be able to do so” [68:42]…” [Majmu’ Fataawa, 24/ 372]
Testing will only cease when a person enters Paradise or Hell. al-Qurtubee’s suggestion that everyone will inevitably know Allah on that Day is correct, but the testing will take the form of orders and prohibitions, as is reported in a number of texts. Allah (swt) will test them by ordering them to enter the Fire: whoever obeys will be blessed, whilst whoever disobeys will be doomed.