Sayyiduna Anas (may Allah be pleased with him) said: The Prophet (peace and blessings be upon him) offered the funeral prayer for a boy, or perhaps a girl, and said: "If anyone were to be saved from the squeezing of the grave, this child would have been saved."
Al-Tabarani recorded it in al-Mu'jam al-Awsat, and its narrators have been declared trustworthy.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الجنائز / 4260