← Back

Learn · Everyday life

When a loved one
is dying.

You may be at a hospital bed, a hospice or a family home, unsure what to say, what to recite or whether you will do something wrong. This page is short and plain. You are not expected to do everything. Being there, gently, is most of it.

On this page

This page is general learning, not medical advice and not a ruling for your own situation. The doctors and nurses lead on care and on confirming a death. A local imam or the hospital’s Muslim chaplain can guide you on anything that touches worship. Where the schools of law differ, this page says so and does not pick for you. If you are in danger or thinking of harming yourself, see urgent help now.

If you remember only four things

  1. Be there, and be gentle. Their comfort and their medical care come before any ritual detail. Being there.
  2. Say lā ilāha illā Allāh softly near them, so they can say it if they are able. Never press them. How to do it kindly.
  3. Keep Qurʾān and duʿāʾ quiet, and help them think well of Allah. Hope in Allah.
  4. After death: wait for the doctors to confirm it, say innā lillāhi wa-innā ilayhi rājiʿūn, gently close the eyes, and tell the mosque. What to do when someone has died.

This page has a companion. It covers the last days and the first hours after a death. For what comes next (washing, the shroud, the funeral prayer and burial, and what a guest does) read What happens at a Muslim funeral.

The main thing to know

Helping someone who is dying is not about performing as many rituals as possible. It is about helping them approach Allah with faith and hope, keeping them comfortable and respected, and caring for the family around them.

So gentleness comes first, always. Nobody should be moved in a way that hurts, pushed to speak, or kept from their medical care for the sake of a ritual. If a detail below is hard or impossible where you are, leave it. Missing a detail is not a failure of faith, and it is not a failure on your part.

If your loved one is not Muslim, this page is not about them, and some of it will not apply. Ask an imam or chaplain what is right in your case. Please don’t guess.

Be there

Visiting someone who is ill is a right they have on other Muslims, and it is rewarded. The Prophet ﷺ said:

The one who visits the sick is in fact like one who is in the fruit garden of Paradise so long as he does not return. – Ṣaḥīḥ Muslim 2568a (ṣaḥīḥ; English as on sunnah.com)

A short, calm visit is often kinder than a long one. A seriously ill person may be tired, confused or in pain. A gentle greeting, a hand to hold, and a quiet duʿāʾ can mean more than conversation.

There is a duʿāʾ the Prophet ﷺ taught for visiting a sick person whose time has not yet come. It is said seven times: Asʾalu Allāha al-ʿAẓīma Rabba al-ʿArshi al-ʿAẓīmi an yashfiyak, “I ask Allah the Magnificent, Lord of the Magnificent Throne, to cure you” (Sunan Abī Dāwūd 3106, ṣaḥīḥ, al-Albānī). It sits alongside medical treatment and never replaces it, and it is not a promise that every illness will end in recovery, because Allah’s decree is His.

When death may be near

Doctors and nurses are the ones who can tell you that someone is dying, and they can often explain what to expect. Tiredness, long sleep, confusion, shallow breathing and cold hands can have treatable causes too, so please don’t decide for yourself. Ask the care team, and ask them to tell the family early if they think time is short.

Once you know, four things are worth knowing. You can do any of them in any order, and none of them takes the place of care.

1. Their comfort first, and the direction of prayer if it is easy

Al-Jazīrī, in al-Fiqh ʿalā al-Madhāhib al-Arbaʿah, records it as a Sunnah to turn a dying person towards the qiblah (the direction of Makkah) if this causes no hardship, with the person lying on the right side, face towards the qiblah, or if that is hard, on the back with the feet towards the qiblah and the head raised a little. The Mālikīs consider it recommended rather than a Sunnah (vol. 1 p. 455, page id 453).

If it would cause pain, disturb equipment or go against the advice of the nurses, leave them as they are. Not facing the qiblah does not spoil anything.

2. Help them to say the shahādah, softly

The Prophet ﷺ said:

Exhort to recite “There is no god but Allah” to those of you who are dying. – Ṣaḥīḥ Muslim 916a (ṣaḥīḥ; English as on sunnah.com)

Lā ilāha illā Allāh: “There is no god but Allah”. This is called talqīn. And he ﷺ said, “If anyone’s last words are ‘There is no god but Allah’ he will enter Paradise” (Sunan Abī Dāwūd 3116, ṣaḥīḥ, al-Albānī).

How you do it matters as much as doing it:

  • Say it yourself, quietly, near them, so they can say it if they are able. Don’t say “Say it!”, and don’t keep pushing. Al-Jazīrī records the scholars’ guidance not to order the person to speak, and not to press them once they have said it, unless they then speak about something else, when it can be gently offered again, so that it is the last thing they say (vol. 1 p. 455, id 453).
  • If they cannot speak, you can say it softly without asking for a reply. Being unable to speak says nothing bad about their faith or their ending.
  • Do not turn this into a test or a scene. It is a kindness.

3. Qurʾān, quietly

You can recite or play Qurʾān softly, whatever you know, or just say Allāhumma ṣalli ʿalā Muḥammad. Keep it calm. Loud or competing recitation can upset someone who is exhausted, and a dying person is not helped by noise.

Many people recite Sūrat Yā Sīn near the dying. Al-Jazīrī records this as recommended, and records that the Mālikīs prefer not to recite near the dying person because it was not the practice of the early generations (vol. 1 p. 455–456, ids 453–454). The report usually quoted for it is disputed among hadith scholars, so we don’t give it as a proof. If this is important to your family, ask an imam of your school. If it is not, quiet Qurʾān of your choice is enough.

4. Hope in Allah

Jābir said he heard the Prophet ﷺ say, three days before he died:

لَا يَمُوتَنَّ أَحَدُكُمْ إِلَّا وَهُوَ يُحْسِنُ بِاللَّهِ الظَّنَّ – Ṣaḥīḥ Muslim 2877a (ṣaḥīḥ)

That is: none of you should die except while thinking well of Allah. Al-Jazīrī says it is recommended for the people at the bedside to help the dying person to think well of Allah, and to remind them of their good deeds and of Allah’s mercy (vol. 1 p. 456, id 454). You might say, “Allah is the Most Merciful,” or “May Allah accept your prayers and everything good you did for us.” Don’t promise what only Allah knows, such as that someone is certainly in Paradise. Hope is not a verdict.

If you think you are dying yourself

Learn these before you need them, and ask someone to say them to you if you can’t say them. ʿĀʾishah heard the Prophet ﷺ say, before he died:

اللَّهُمَّ اغْفِرْ لِي وَارْحَمْنِي، وَأَلْحِقْنِي بِالرَّفِيقِ – Ṣaḥīḥ al-Bukhārī 4440 (ṣaḥīḥ)

“O Allah, forgive me, have mercy on me, and let me meet the (highest) companions.” Say lā ilāha illā Allāh if you can, and think well of Allah. If you can’t speak, or can’t do any of it, be at ease. Allah knows your heart.

What to do when someone has died

For the funeral itself, step by step, see What happens at a Muslim funeral.

The medical and legal steps come first. A doctor must confirm the death, and in the UK the hospital, GP or coroner’s officer will tell you what has to happen next. Staff are used to Muslim families who want to move quickly, and they can often help. Wait for the confirmation before anything else is done.

Say the words of return. Allah describes “those who say, when afflicted with a calamity, ‘We belong to God and to Him we shall return’” (Qurʾān 2:156, Abdel Haleem). Umm Salamah reported the words the Prophet ﷺ taught for this: Allāhumma ʾjurnī fī muṣībatī wa-akhlif lī khayran minhā, “O Allah, reward me in my calamity and replace it for me with something better” (Ṣaḥīḥ Muslim 918a). This is a request to Allah, not a promise that a loss will be replaced by something like it.

Close the eyes gently. When the Prophet ﷺ came to Abū Salamah as he died, his eyes were open. He closed them, then said, “When the soul is taken away the sight follows it.” Some of the family wept loudly and he said, “Do not supplicate for yourselves anything but good, for angels say ‘Amen’ to what you say.” Then he prayed, “O Allah, forgive Abū Salamah, raise his degree among those who are rightly guided … Forgive us and him, O Lord of the Universe, and make his grave spacious, and grant him light in it” (Ṣaḥīḥ Muslim 920a, ṣaḥīḥ; English as on sunnah.com, trimmed). Al-Jazīrī says closing the eyes is a Sunnah, and the Mālikīs call it recommended (vol. 1 p. 456, id 454). A close relative can do it, and a nurse can do it for you.

Leave the rest to the people who know how. Gently closing the mouth, straightening the limbs and covering the body are usually done by the hospital or the funeral service with the family’s agreement. Don’t force anything. Al-Jazīrī also says to wait until death is certain, and then to hurry with the preparation and burial (id 454).

Tell people. Al-Jazīrī says it is recommended to let people know so they can attend the funeral (the Ḥanbalīs say it is permitted) (id 454). A message to the mosque, or to the imam, is enough.

Hurry, without cutting corners. The Prophet ﷺ said, “Hurry up with the dead body, for if it was righteous, you are forwarding it to welfare; and if it was otherwise, then you are putting off an evil thing down your necks” (Ṣaḥīḥ al-Bukhārī 1315). That is about not delaying without reason. It does not override a doctor’s confirmation, a coroner’s inquiry, or the paperwork that has to be done.

Wills and debts. The Prophet ﷺ said that no Muslim who has something to leave in a will should let two nights pass without having the will written down (Ṣaḥīḥ al-Bukhārī 2738, Ṣaḥīḥ Muslim 1627a). If someone has died and you are not sure about money, debts or a will, ask an imam and a solicitor. Islamic and legal rules each have their own details.

What to say to the family

Tears are not weakness, and they are not against faith. When the Prophet’s ﷺ small son Ibrāhīm was dying, his eyes filled with tears, and he said, “The eyes are shedding tears and the heart is grieved, and we will not say except what pleases our Lord” (Ṣaḥīḥ al-Bukhārī 1303). Patience, he ﷺ said, is “at the first stroke of a calamity” (Ṣaḥīḥ al-Bukhārī 1283). It does not mean pretending.

When one of his daughters lost her child, he sent this message: “Whatever Allah takes is for Him and whatever He gives, is for Him, and everything with Him has a limited fixed term (in this world) and so she should be patient and hope for Allah’s reward” (Ṣaḥīḥ al-Bukhārī 1284, ṣaḥīḥ; English as on sunnah.com). Many people say something short and true: “May Allah have mercy on him,” “May Allah forgive her,” “May Allah give you patience and make this easier for you.” Say only what is true about the person. If you can’t think of words, “I’m so sorry. I’m here” is enough.

The Prophet ﷺ told his people to prepare food for the family of Jaʿfar after his death, “for there came upon them an incident which has engaged them” (Sunan Abī Dāwūd 3132, ḥasan, al-Albānī). Al-Jazīrī says it is recommended for neighbours and friends to send food to the bereaved family, and to press them gently to eat (vol. 1 p. 490, id 488). In practice, ask what the family needs: food, childcare, a lift, help with forms. Don’t add to the family’s work.

Al-Jazīrī records that the schools differ on repeating formal condolences. The Ḥanafīs, Shāfiʿīs and Ḥanbalīs dislike offering them more than once, and the Mālikīs do not (id 488). That is about the formal condolence only. Staying in touch with a grieving person for weeks and months is a kindness at any time.

If you are grieving

You may find yourself numb, or angry, or relieved, or all three. All of that is common. If heavy sadness, panic or sleeplessness goes on for more than a couple of weeks, talk to your doctor, and see hard times and heavy feelings and support. Seeing a doctor or a counsellor sits comfortably alongside prayer.

In short

  1. Be there, and be gentle. Comfort and care come before any ritual detail.
  2. Say lā ilāha illā Allāh softly, so they can say it if they are able. Don’t pressure them.
  3. Keep Qurʾān and duʿāʾ quiet. Help them think well of Allah.
  4. After death: wait for confirmation, say innā lillāhi wa-innā ilayhi rājiʿūn, close the eyes, tell the community.
  5. Where the schools differ, ask an imam of your school. Where you can’t reach one, the hospital chaplain can help.

School positions on this page were checked against ʿAbd al-Raḥmān al-Jazīrī, al-Fiqh ʿalā al-Madhāhib al-Arbaʿah, vol. 1 (the sections on what is done for the dying and the deceased, and on condolences). Hadith references link to Sunnah.com and show the grading given there. Where a report is disputed we say so and don’t use it as proof.

Where next

Last reviewed 20 November 2026

← Back