It was narrated from Abu Hurairah that the Prophet ﷺ said: "Whoever has the funeral prayer offered for him by one hundred Muslims, he will be forgiven".
The Prophet Muhammad also taught us about compassion and mercy towards others, especially when it comes to death. He encouraged us to come together as a community in times of loss and support each other through our prayers so that we can all find solace in knowing that our loved ones are being taken care of by Allah even after their passing. By offering these prayers we can also seek forgiveness from Allah on behalf of those who have passed away which can help them find peace in the afterlife as well as bring comfort to their families here on earth.