Gathering in one place for condolences
(for example in a house, a graveyard or a mosque, etc.) and the family of the deceased preparing food for those who come is not correct, as narrated from Jarir ibn Abdillah (may Allah be pleased with him):
كنا نعد الاجتماع إلى أهل الميت وصنعة الطعام بعد دفنه من النياحة
“We used to count gathering with the family of the deceased and preparing food after burial as wailing (niyaha).”
Reference: Sahih (authentic): Ahkam al-Jana’iz: p. 210, Ibn Majah: 1612, Kitab al-Jana’iz: Bab Ma Ja’a fi al-Nahy ‘an al-Ijtima’ ila Ahl al-Mayyit, Ahmad: 204/2, Hafiz Busiri (may Allah have mercy on him) declared it sahih (authentic). Al-Zawa’id: 535/1