Short answer
The sunnah is that neighbours and relatives send food to the grieving family, not the other way round. In the Hanafi school it is disliked for the bereaved family to cook and host a feast for guests, especially on the third, tenth or fortieth day. Eating what has been sent to the family is fine.
Preparing food for the bereaved family is sunnah. A feast hosted by the family of the deceased for mourners is makruh, and a gathering fixed on set days is a custom without basis in the Sunnah.
Other madhhabs
- Shafi'i
- Disliked, as well, for the family of the deceased to prepare a meal for the people; the sunnah is that others feed them.
- Hanbali
- Disliked for the family of the deceased to make food for the people.
Explanation
When news came of the death of Ja'far, the Prophet ﷺ told his family to make food for the family of Ja'far, because something had come to them that kept them busy. This is the sunnah: people feed the bereaved. They are grieving and have guests to look after.
The Hanafi jurists, including Ibn Abidin, dislike the reverse, when the family of the deceased cook for the visitors. They call it an unwanted innovation when it turns into a fixed event on the third, tenth, twentieth or fortieth day, with invitations and a large meal. It adds a burden at a time of loss, and sometimes the food is paid for from the estate, which may belong to heirs who are minors or did not agree.
What is fine:
- Bringing a meal to the family. See condolences in Islam.
- Eating what neighbours or relatives have prepared and sent, especially if you have travelled from far away.
- Feeding the poor as sadaqah on behalf of the deceased, from your own money, without turning it into a fixed ceremony.
What to avoid:
- A big invitation meal on set days; see 40 days after death.
- Paying for it out of the estate before inheritance is settled.
- Making the family feel they have to host.
If you are not sure how to help a grieving family, offer a meal, help with the children or the school run, and do the shopping for them for a few days.
The evidence
Sunan Abi Dawud 3132
Graded hasan... اصنعوا لآل جعفر طعاما فإنه قد أتاهم أمر شغلهم ...
"Make food for the family of Ja'far, for what has come to them keeps them busy."
Neighbours should make food for the bereaved family, not the other way round.
Where the ruling is recorded
- Radd al-Muhtar (Ibn Abidin), Kitab al-Salah, Bab al-Jana'iz. It is disliked for the family of the deceased to prepare food for the people.
- al-Mughni (Ibn Qudama), Kitab al-Jana'iz. The Hanbali view that it is disliked for the family of the deceased to make food for the people.
Reviewed by Hafez Mawlana Abu Darda and Mawlana Akramul Haque Fenwi, Islamic scholars. For a more accurate answer to your own situation, consult a scholar. Quran translation by Saheeh International. Hadith: selections from sunnah.com, Arabic from the standard editions of the six books and the Muwatta, with gradings as recorded there; the English is our own rendering. Spotted a mistake? Tell us.