It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that once the ruling regarding the children of polytheists who die in infancy was asked from the Holy Prophet (peace and blessings be upon him), so the Holy Prophet (peace and blessings be upon him) said: Allah knows best what deeds they would have done when they grew up.