Why is there evil and suffering?

Chapter 5 · about 13 min read

In short

  • It is a fair question, and asking it is not a sin. Even the angels asked something close to it.
  • This life is a test. Allah gave people a real choice, so real good and real evil are both possible. Much of the harm in the world comes from what people choose to do.
  • For a believer, pain is never wasted. It wipes away sins, raises your level, and will be paid back in full. This life is short, and the next life is perfectly fair.
  • Allah has not told us the reason for every pain. The story of Musa and al-Khidr shows that a hidden mercy can sit behind something that looks wrong.
  • When you are the one suffering, you may cry, tell Allah how you feel, and ask people for help. If the sadness is very heavy, talk to someone today.
Take the short lessonsThe key points of this chapter, a few screens at a time, with a quick check at the end.

Is it okay to ask this?

Maybe you saw a child hurt in a war on the news. Maybe someone you love is very sick. Maybe your own life has been hard for a long time. And a question came into your head:

"If Allah is all good and all powerful, why does He let so much evil and pain happen? Why do innocent people suffer? Why does He not just stop it?"

This is one of the oldest and hardest questions people ask about God. It is a fair question, and asking it is not a sin. Wanting to understand is not the same as turning away from Allah.

Even the angels asked something close to it. When Allah told them He would place people on the earth, they said: will You place on it someone who will spread harm and shed blood? Allah did not scold them. He said: I know what you do not know1.

The answer Islam gives is honest, it makes sense, and it brings real comfort. If the question keeps coming back as an unwanted thought, also read Is it normal to have doubts?

Sources for this section
  1. 1(Quran 2:30)

What is the short answer?

  • This life is a test, not the final stop.
  • Allah gave people a real choice, so they can do real good and real harm. Much evil comes from people's own hands.
  • Pain is never wasted for a believer. It wipes away sins and raises your level with Allah.
  • Nothing is left unpaid. Every wrong will be put right on the Day of Judgment.
  • Allah knows what we do not know. He has not told us the reason for every event. But He has shown us enough to trust Him with the rest.

Why is life a test?

Allah tells us plainly why He made life and death: He created death and life to test you, to see which of you is best in what you do2.

So this world is more like an exam hall than a holiday home. An exam has hard questions on purpose. It is how you show who you really are.

  • Allah tests with both hard times and easy times: We test you with bad and with good, as a trial3. Being rich and healthy is a test too.
  • No one is left out: do people think they will be left alone to say "we believe", and not be tested?4.
  • Allah told us ahead of time: We will test you with some fear and hunger, and some loss of wealth, lives and crops. But give good news to those who are patient5.

Patience, courage and mercy are some of the best things a person can have. But you cannot be patient if nothing is ever hard. A world with no hardship would have no room for these good things.

Also read the post Why is Allah testing me?

Sources for this section
  1. 2(Quran 67:2)
  2. 3(Quran 21:35)
  3. 4(Quran 29:2-3)
  4. 5(Quran 2:155)

Why does Allah let people do evil?

Allah gave people a real choice: We showed him the way, whether he is thankful or ungrateful6. For how this fits with Allah's decree, see Free will, fate and fairness.

A choice is only real if both sides are possible. If Allah stopped every person the moment they tried to hurt someone, we would be like robots. Kindness only counts when you could have done the opposite.

  • Much suffering is caused by people: war, theft, abuse, greed. Allah says: harm has spread on land and sea because of what people's hands have done, so that they taste some of it and come back7.
  • Allah forbids this harm. In a hadith qudsi (Allah's words told by Nabi ﷺ), Allah says: My servants, I have made injustice haram for Myself, and I have made it haram between you. So do not wrong one another8.
  • So when a person does evil, the blame is on that person. Allah warned him, showed him the right way, and will hold him to account.

Will the wrongdoers get away with it?

No. In this world, many cruel people seem to escape. But the story does not end at death.

  • Allah does not wrong anyone, not even by the weight of a tiny speck9.
  • Whoever does a speck of good will see it. And whoever does a speck of evil will see it10.
  • Nabi ﷺ said that on the Day of Judgment every right will be given back, even a sheep with no horns will get its due from the sheep with horns that hit it11.

Without a Day of Judgment, the people who suffered most would never see justice. Islam says they will.

Is Allah the source of evil?

Nothing happens outside Allah's will. But what Allah does is always wise and fair, even when the thing itself hurts us. In his night prayer, Nabi ﷺ said to Allah: all good is in Your hands, and evil is not to be linked to You12. Scholars explain: Allah allows a hard thing for a good purpose. The harm is in the thing as we feel it, not in Allah's purpose. To read more, see Qadr: Allah's decree.

Sources for this section
  1. 6(Quran 76:3)
  2. 7(Quran 30:41)
  3. 8(Muslim 2577)
  4. 9(Quran 4:40)
  5. 10(Quran 99:7-8)
  6. 11(Muslim 2582)
  7. 12(Muslim 771)

Why do good people suffer?

Why would a kind, praying, honest person get cancer, lose a child, or live in poverty? Islam gives clear answers.

1. Pain wipes away sins

Nabi ﷺ said: no tiredness, illness, worry, sadness, hurt or distress reaches a Muslim, not even the prick of a thorn, without Allah wiping away some of his sins because of it13.

He told a woman who cursed her fever: do not curse the fever. It takes away sins, the way a blacksmith's fire takes the dirt out of iron14.

2. The best people are tested the most

A man asked Nabi ﷺ: who is tested the hardest? He said: the prophets, then the best people after them, and then the best after them. The tests keep coming until a person walks on the earth with no sin left on him15. Nabi ﷺ also said: when Allah wants good for someone, He tests him16.

So a hard life is not a sign that Allah hates you. Ayyub was ill for a long time. Yaqub lost his son Yusuf for years. Nabi ﷺ lost his parents, his wife Khadijah, and six of his seven children in his lifetime. Read their stories on the prophets page.

3. Patience gets a reward with no limit

Allah says: those who are patient will be given their reward in full, without counting17. Nabi ﷺ said: how amazing is the believer! Everything that happens to him is good for him. In good times he is thankful, and in bad times he is patient, and both are good for him18.

Patience does not mean you stop feeling pain. It means you keep trusting Allah, and do not turn against Him, while you still hurt.

The full story: the woman who chose patience

Ibn Abbas once said to a student: shall I show you a woman from the people of Jannah? He pointed to a Black woman and told her story.

She came to Nabi ﷺ and said: I have fits (epilepsy), and when they come, my body gets uncovered. Please make dua to Allah for me.

Nabi ﷺ gave her a choice: if you want, be patient, and you will have Jannah. Or if you want, I will ask Allah to cure you.

She said: I will be patient. But please ask Allah that my body does not get uncovered. And he made dua for her19.

What this teaches us

  • Her illness did not mean Allah was angry with her. It became her road to Jannah.
  • She still asked for help with what she could not bear. Patience and asking Allah for help go together.
  • This was her own choice, offered by Nabi ﷺ. It does not mean you should refuse treatment. Allah made a cure for every disease20.
Sources for this section
  1. 13(Bukhari 5641)
  2. 14(Muslim 2575)
  3. 15(Tirmidhi 2398)
  4. 16(Bukhari 5645)
  5. 17(Quran 39:10)
  6. 18(Muslim 2999)
  7. 19(Bukhari 5652)
  8. 20(Bukhari 5678)

Is this life all there is?

Much of the pain in this question comes from looking only at this life. But in Islam, this life is a short trip, and the next life lasts forever.

  • Nabi ﷺ said: be in this world as if you were a stranger, or someone just passing through21.
  • Every soul will taste death, and you will be given your full reward on the Day of Resurrection22. Full reward comes then, not always now.
  • With hardship comes ease. Truly, with hardship comes ease23.

One moment in Jannah

Nabi ﷺ said: on the Day of Judgment, the person who had the easiest life, but ends up in the Fire, will be dipped into it once. Asked if he ever had any comfort, he will say: no, by Allah, never. The person who had the hardest life, but ends up in Jannah, will be dipped into it once. Asked if he ever went through anything hard, he will say: no, by Allah, my Lord. I never saw any hardship24.

One moment in Jannah will wipe out a whole lifetime of pain. That does not make your pain small today. But it is not the end of your story. See Jannah and Jahannam.

Sources for this section
  1. 21(Bukhari 6416)
  2. 22(Quran 3:185)
  3. 23(Quran 94:5-6)
  4. 24(Muslim 2807)

What about things we cannot explain?

Here we must be honest. Allah has not told us the reason for every single pain. Why this flood, in this town, on this day? We do not know. Anyone who says they know the reason for every event is claiming too much.

But not knowing the reason does not mean there is no reason. Allah says: you may dislike something while it is good for you, and you may love something while it is bad for you. Allah knows, and you do not know25.

A small child does not understand why his mother takes him for a painful injection. To him, it looks cruel. To her, it is love. Our view of the world is like that child's. We see one small piece. Allah sees all of it.

The Quran tells a powerful story about this in Surah al-Kahf26.

The full story: Musa and al-Khidr

Allah told Musa (Moses) that a servant of His, known as al-Khidr, had knowledge Musa did not have. Musa found him and asked to learn from him. Al-Khidr said: how can you be patient about something you do not fully understand?27. Musa promised to be patient. Then three things happened:

  • Poor sailors gave them a free ride. Al-Khidr broke a plank in their boat. Musa said: that is a terrible thing to do!
  • They met a boy, and al-Khidr killed him. Musa was horrified: you killed an innocent person!
  • In a town where the people refused to feed them, al-Khidr fixed a falling wall for free. Musa said: you could have asked for payment.

On the boat, a small bird dipped its beak into the sea. Al-Khidr said: our knowledge, next to Allah's, is like the drop this bird took28. Then he explained29:

  • The boat: a king was seizing every good boat by force. He would leave a damaged one alone.
  • The boy: his parents were believers. He would have pushed them into cruelty and disbelief. Allah would give them a better child in his place.
  • The wall: it belonged to two orphan boys whose father had been a good man. Their treasure was buried under it, safe until they grew up.

Al-Khidr said: it was a mercy from your Lord. I did not do it on my own30.

What this teaches us

  • Something can look completely wrong to us, and still hold a mercy we cannot see.
  • Even Musa could not see the hidden reasons. It is no shame that we cannot either.
  • This story does not let any person harm others and claim a hidden reason. Al-Khidr acted by Allah's direct command. We follow the clear rules of the Quran and Sunnah.

So the honest answer is this. We know some of the reasons for suffering, and they are strong ones. For the rest, we have good reason to trust the One who has already shown us so much wisdom and mercy.

Sources for this section
  1. 25(Quran 2:216)
  2. 26(Quran 18:65-82)
  3. 27(Quran 18:68)
  4. 28(Bukhari 3401)
  5. 29(Quran 18:79-82)
  6. 30(Quran 18:82)

So why do babies and animals suffer?

This is often the hardest part. A baby has done nothing wrong. Here too, Allah has not told us every reason. But Islam tells us some very important things.

  • A child who dies is not lost. In a true dream, Nabi ﷺ saw Ibrahim (Abraham) in a garden with children around him. He was told: these are the children who died on the fitrah (the natural state every child is born with). The Companions asked: and the children of idol worshippers? He said: and the children of idol worshippers too31.
  • The parents' pain is not wasted. A Muslim who loses three children before they grow up will be entered into Jannah by Allah, out of His mercy to those children32. When a believer loses a child and still praises Allah, Allah says: build for My servant a house in Jannah, and call it the House of Praise33.
  • Allah is more merciful than any mother. Nabi ﷺ saw a mother hugging her lost baby she had just found. He said: Allah is more merciful to His servants than this woman is to her child34.

Scholars agree that young children of Muslims who die are in Jannah. About the children of non-Muslims, scholars hold different views. Many say they are in Jannah, based on the hadith above. Some say Allah will test them on the Day of Judgment. Others say only Allah knows. All agree that Allah will not wrong any child. See also Other religions, and people who never heard.

A sick child is also a test for the adults around it. And much child suffering comes from people, like war and hunger caused by greed. That is a call for us to act, not only to ask.

And animals?

Animals feel pain too, and they have no sins to wipe away. We do not know every reason. But Allah says: every animal on land and every bird that flies is a community like you, and they will be gathered to their Lord35. So animals are not forgotten. Even the sheep with no horns will get its right back from the sheep with horns36. If Allah is that fair with a sheep, He will be fair with every creature.

Allah also put mercy into animals. Nabi ﷺ said Allah sent down one part of His mercy and kept ninety-nine parts with Him. Because of that one part, a horse lifts its hoof away from its baby so it does not hurt it37.

Sources for this section
  1. 31(Bukhari 7047)
  2. 32(Bukhari 1248)
  3. 33(Tirmidhi 1021)
  4. 34(Bukhari 5999)
  5. 35(Quran 6:38)
  6. 36(Muslim 2582)
  7. 37(Bukhari 6000)

What if it is me who is suffering?

Answering the question in your head is one thing. Living through the pain is another.

You are allowed to cry

When Nabi ﷺ's baby son Ibrahim was dying, tears ran down his face. A Companion said: even you, Messenger of Allah? He said: this is mercy. Then he said: the eyes shed tears and the heart is sad, but we only say what pleases our Lord38. Crying is not weak faith.

Tell Allah how you feel

  • Yaqub said, grieving for his son: I only complain of my sadness and grief to Allah39. You may tell Allah everything, even your questions.
  • Ayyub said: harm has touched me, and You are the Most Merciful of all who show mercy. Allah answered him and took away his pain40.
  • When something bad happens, say: Inna lillahi wa inna ilayhi raji'un (we belong to Allah, and to Him we return)41. Then add: Allahumma ajurni fi musibati wa akhlif li khayran minha (O Allah, reward me for this hardship and give me something better after it). Umm Salamah said this when her husband died, though she could not imagine anyone better. Later Nabi ﷺ married her42.

Take practical steps

  • Use every help Allah has made. See a doctor. Take medicine. Ask family and friends for help. That is part of trusting Allah43.
  • Keep making dua. If it feels like no answer is coming, read When your dua seems unanswered. You can find duas for hard times on the duas page.
  • Help someone else who is hurting. It often heals you too.
If the sadness is very heavy: if you feel hopeless, cannot get out of bed, or have thoughts of hurting yourself, please talk to someone today: a family member, an imam, a doctor or a counselor. Getting help is not weak faith. It is taking the cure Allah made. You do not have to carry this alone.
Sources for this section
  1. 38(Bukhari 1303)
  2. 39(Quran 12:86)
  3. 40(Quran 21:83-84)
  4. 41(Quran 2:156)
  5. 42(Muslim 918)
  6. 43(Bukhari 5678)

Common questions

If Allah can stop all evil, why does He not?
Because then this life would not be a test, and our choices would not be real44. Allah will put every wrong right on the Day of Judgment45. Even now, He sent messengers, made evil haram, and put mercy in people's hearts46.
Is my illness a punishment for my sins?
Do not think that way. The prophets, the best of people, were tested the most47. For a believer, illness wipes away sins and raises your level48. See it as a cleaning and a chance, not a sign that Allah hates you.
What about people who die in an earthquake or a flood?
We do not know the reason for each disaster, and we must not blame the victims. Nabi ﷺ said a Muslim who drowns, dies under a falling building, or dies of plague is a shahid (martyr)49. That is an honor, not a punishment. And we must help those who survive.
Is it wrong to feel angry or confused about what happened to me?
You are not blamed for a feeling you did not choose. What matters is what you do with it. Take it to Allah, like Yaqub did50. Do not say words against Allah, and do not give up on Him51.
My friend says suffering proves there is no God. What do I say?
Be kind and calm. Suffering is real, and it hurts. But it does not prove there is no God. It shows this life is not the whole story. Without God, there is no final justice for anyone who was wronged. With Allah, every wrong is put right. See How do we know Allah exists?
Sources for this section
  1. 44(Quran 67:2)
  2. 45(Quran 99:7-8)
  3. 46(Bukhari 6000)
  4. 47(Tirmidhi 2398)
  5. 48(Bukhari 5641)
  6. 49(Bukhari 2829)
  7. 50(Quran 12:86)
  8. 51(Bukhari 1303)

This guide gives what scholars agree on and the main views where they differ. If a doubt stays with you, talk it through with a scholar you trust or your local imam. Asking is not a sin.

All of Dealing with Doubts