Sleeping on the ground for forty days as mourning over the dead
The habit of holding Ma'tam and staying to meet people who come for consolation is a type of Bid`ah (innovation in religion). Neither the Prophet (peace be upon him) nor his Companions (may Allah be pleased with them) used to do this. Likewise, sleeping on the ground and the abstinence of the relatives and neighbors of the dead from applying perfume for forty days is a type of Bid`ah. Similarly, slaughtering animals a week or forty days after the death of someone as a Sadaqah for the dead or serving meat to those who come to offer consolation is Bid`ah.So, it is Wajib (obligatory) to abandon such habits and reproach those (Part No. 9; Page No. 85) who practice them as the Prophet (peace be upon him) said:
Anyone who introduces anything into this matter of ours (Islam) that is not part of it will have it rejected.
Agreed upon by Al-Bukhari and Muslim.
May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.