It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) led the funeral prayer for a girl or a boy and said: "If anyone could be saved from the squeezing (pressing) of the grave, this child would certainly have been saved."
Al-Daraqutni (may Allah have mercy on him) said: "Harami bin Umarah and Sa'id bin Asim al-Lakhmi, a Basran shaykh, narrated it from Hammad, from Thumamah, from Sayyiduna Anas (may Allah be pleased with him); while Waki' and Abu Umar al-Hawdi differed from the two of them: they both narrated it from Hammad, from Thumamah as mursal, and that (its being mursal) is correct."