Narrated Umm Salamah: When the Messenger of Allah ﷺ entered upon Abu Salamah, his eyes were fixedly open. So he closed them. The members of his family cried. He said: Do not pray for yourself anything but good, for the angels utter Amin to what you say. He then said: O Allah, forgive Abu Salamah, raise his rank among those who are guided, and grant him a succession in his descendants who remain. Forgive both us and him, Lord of the universe. O Allah,make his grave spacious for him, and grant him light in it. Abu Dawud said: The eyes of the deceased should be closed after his expiry. I heard Muhammad b. al-Nu'man al-Muqri say: I heard a man who was devoted to Allah say: I closed the eyes of Ja'far al-Mu'allim when he was dying. He was a man devoted to Allah. I saw him in a dream on the night he died. He said: The biggest thing for me was closing the eyes by you before I died.
The Prophet Muhammad also taught us that when someone dies, we should not cry too much as this may cause distress to those who have passed away in their graves. Instead, we should pray for mercy from Allah on behalf of those who have passed away so that they may receive His blessings in the afterlife. Lastly, this hadith reminds us that death is inevitable; no one can escape it but through prayer and supplication from Allah can help ease our pain during difficult times such as these.