Sayyiduna Imran bin Husayn (may Allah be pleased with him) narrates: A man, close to his death, freed his six slaves. His heirs, who were from the Bedouins, came and told the Prophet (peace and blessings be upon him) about what that man had done. The Prophet (peace and blessings be upon him) asked: "Did he really do that?" He said: "Had you informed us beforehand, we would not have offered his funeral prayer."
(Allamah Haythami says:) I say: This narration is reported in the Sahih in abridged form.
Imam Ahmad recorded it, and its narrators are the narrators of the Sahih.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الجنائز / 4220