Qadr (also spelled qadar) is the belief that everything that happens, good and bad, happens by Allah's decree: He knew it, He wrote it, He willed it and He created it. It's the sixth article of faith. Islam also teaches that people make real choices and are responsible for them. Allah's decree doesn't force your hand, and when the Companions asked the Prophet ﷺ "then why act?", he told them to keep doing good deeds.
This is one of the hardest subjects for anyone thinking about Islam, and for plenty of Muslims too. If it all feels like a contradiction, you're asking a question the Companions asked as well. Below we go through what Muslims believe, step by step, and how it's meant to change the way you live.
Qadr is part of iman
When Jibril asked the Prophet ﷺ about faith, the answer listed six beliefs and ended with this one:
That you affirm your faith in Allah, in His angels, in His Books, in His Apostles, in the Day of Judgment, and you affirm your faith in the Divine Decree about good and evil.
Narrated by 'Umar ibn al-Khattab. Shortened.
Note the words "good and evil". Qadr isn't only about the nice things. Illness, loss and disappointment are also within Allah's decree, and that's exactly where belief in qadr does most of its work. The Quran puts it in a single line:
إِنَّا كُلَّ شَىْءٍ خَلَقْنَـٰهُ بِقَدَرٍ ٤٩
Indeed, all things We created with predestination.
Translation: Saheeh International. Recitation: Mishary al-Afasy.
The four levels of qadr
Sunni scholars explain belief in qadr as four things that go together. They're not four separate events but four aspects of one belief:
| Level | Meaning | From the Quran and Sunnah |
|---|---|---|
| 1. Knowledge ('ilm) | Allah has always known everything: what was, what is, what will be, and what would have been | "Allah is Knowing of all things" (64:11) |
| 2. Writing (kitabah) | He recorded it all before creating the world | "in a register before We bring it into being" (57:22) |
| 3. Will (mashi'ah) | Nothing happens unless He wills it | "you do not will except that Allah wills" (76:30) |
| 4. Creation (khalq) | He creates all things, including people and their actions | "all things We created with predestination" (54:49) |
The writing is described in an ayah that also explains why we're told about it at all:
مَآ أَصَابَ مِن مُّصِيبَةٍ فِى ٱلْأَرْضِ وَلَا فِىٓ أَنفُسِكُمْ إِلَّا فِى كِتَـٰبٍ مِّن قَبْلِ أَن نَّبْرَأَهَآۚ إِنَّ ذَٰلِكَ عَلَى ٱللَّهِ يَسِيرٌ ٢٢
22No disaster strikes upon the earth or among yourselves except that it is in a register before We bring it into being - indeed that, for Allāh, is easy -
لِّكَيْلَا تَأْسَوْا۟ عَلَىٰ مَا فَاتَكُمْ وَلَا تَفْرَحُوا۟ بِمَآ ءَاتَىٰكُمْۗ وَٱللَّهُ لَا يُحِبُّ كُلَّ مُخْتَالٍ فَخُورٍ ٢٣
23In order that you not despair over what has eluded you and not exult [in pride] over what He has given you. And Allāh does not like everyone self-deluded and boastful -
Translation: Saheeh International. Recitation: Mishary al-Afasy.
So the point of knowing that your losses were written isn't to make you passive. It's so you don't fall apart over what you missed, and don't become arrogant over what you got. The Prophet ﷺ taught the young Ibn 'Abbas the same lesson:
Know that if the entire creation were to gather together to do something to benefit you- you would never get any benefit except that Allah had written for you. And if they were to gather to do something to harm you- you would never be harmed except that Allah had written for you. The pens are lifted and the pages are dried.
Narrated by Ibn 'Abbas. Shortened. Graded hasan (Darussalam).
The writing reaches each person individually too. The Prophet ﷺ said that an angel is sent to every child in the womb and told to write its deeds, its provision, its time of death, and whether it will be happy or miserable (Sahih al-Bukhari 3208).
So do we have free will?
Yes. The Quran addresses people as choosers again and again, and it holds them to account for their choices:
وَقُلِ ٱلْحَقُّ مِن رَّبِّكُمْۖ فَمَن شَآءَ فَلْيُؤْمِن وَمَن شَآءَ فَلْيَكْفُرْۚ إِنَّآ أَعْتَدْنَا لِلظَّـٰلِمِينَ نَارًا أَحَاطَ بِهِمْ سُرَادِقُهَاۚ وَإِن يَسْتَغِيثُوا۟ يُغَاثُوا۟ بِمَآءٍ كَٱلْمُهْلِ يَشْوِى ٱلْوُجُوهَۚ بِئْسَ ٱلشَّرَابُ وَسَآءَتْ مُرْتَفَقًا ٢٩
And say, "The truth is from your Lord, so whoever wills - let him believe; and whoever wills - let him disbelieve." Indeed, We have prepared for the wrongdoers a fire whose walls will surround them. And if they call for relief, they will be relieved with water like murky oil, which scalds [their] faces. Wretched is the drink, and evil is the resting place.
Translation: Saheeh International. Recitation: Mishary al-Afasy.
You decide what you do, and you feel that you decide. Nobody forces your hand when you lie or tell the truth, pray or skip a prayer. That's why there's reward and punishment, and why Allah doesn't hold anyone responsible for what they couldn't help: a child, someone asleep, or someone forced against their will.
At the same time, your choice doesn't happen outside Allah's knowledge and will: "you do not will except that Allah wills" (76:30). Mainstream Sunni teaching holds both together. Allah knows and decrees everything, and you really choose and are really responsible. Allah's knowledge of what you'll choose doesn't push you to choose it, in the same way that a teacher who knows a student well enough to predict his answer isn't the one writing it on the exam. That comparison only goes so far, since Allah's knowledge is perfect and ours isn't, but it helps with the basic worry.
"Then why act?" The Prophet's answer
The Companions asked the obvious question directly. 'Ali reported that at a funeral, the Prophet ﷺ said that everyone's place, in Paradise or the Fire, was already written. They asked whether they should rely on that and stop working. He said:
Carry on doing (good) deeds, for everybody will find easy to do such deeds as will lead him to his destined place for which he has been created.
Narrated by 'Ali ibn Abi Talib. Shortened.
Then he recited from Surah Al-Layl: "As for he who gives and fears Allah, and believes in the best [reward], We will ease him toward ease" (92:5-7). In other words, you don't know what's written for you, and you can't use it as an excuse. What you can see is the path in front of you. Taking it is your part.
This is also why qadr doesn't mean you stop making plans, studying for the exam, locking your door or going to the doctor. Taking the means is part of what Allah decreed. Trust in Allah, tawakkul, means doing your part and then leaving the result with Him.
Qadarullah: what to say when things go wrong
The most practical hadith on qadr is about the moment after something bad happens:
A strong believer is better and is more lovable to Allah than a weak believer, and there is good in everyone, (but) cherish that which gives you benefit (in the Hereafter) and seek help from Allah and do not lose heart, and if anything (in the form of trouble) comes to you, don't say: If I had not done that, it would not have happened so and so, but say: Allah did that what He had ordained to do and your" if" opens the (gate) for the Satan.
Narrated by Abu Hurayrah.
The words the Prophet ﷺ taught in that hadith are:
قَدَرُ اللَّهِ وَمَا شَاءَ فَعَلَ
Qadarullahi wa ma sha'a fa'al
"Allah decreed it, and what He willed, He did."
You'll hear Muslims say qadarullah after a missed train, a failed exam or a broken phone. It doesn't mean "whatever". It means: I did what I could, it was decreed, and I'm not going to torture myself with "if only". Notice the order in the hadith, too. First, strive for what benefits you and ask Allah's help. Only after that, accept what happens.
What qadr isn't
- It isn't an excuse for sin. Saying "it was written" to justify doing wrong is something the Quran criticizes the idol-worshippers for (6:148). You don't know what's written until it happens; you do know what's right before you choose.
- It isn't fatalism. The Prophet ﷺ worked hard, and he planned battles, journeys and treaties in detail.
- It isn't Allah being unjust. Allah wrongs no one. He'll judge each person by what they actually did, with full knowledge of what they were given and what reached them.
How this belief helps
People who take qadr to heart tend to say the same thing: it makes hard times lighter. When something's out of your hands, you can let it go. When something good comes, you know where it came from. And when you're tempted to envy someone, you remember their provision was written for them, not taken from you. Even a hard thing can turn out to be good. "No disaster strikes except by permission of Allah. And whoever believes in Allah, He will guide his heart" (64:11).
Qadr is the last of the six articles of faith. You can read all six in the six pillars of iman explained, or see a shorter summary in what Muslims believe. For the short definition, see qadr in our glossary. Saying in sha Allah about the future comes from the same belief.
Qadr has a full section in The Six Pillars of Iman, which takes the four levels slowly, looks at the questions people raise most, and keeps to what the Quran and Sunnah say.
Questions people ask
What does qadr mean?
Qadr means measure or decree. In belief, it's Allah's decree: everything happens by His knowledge, writing, will and creation.
What does qadarullah mean?
Qadarullahi wa ma sha'a fa'al means "Allah decreed it, and what He willed, He did." The Prophet ﷺ taught it for when something goes wrong, in place of "if only" (Sahih Muslim 2664).
Does Islam believe in free will?
Yes. People make real choices and are accountable for them (18:29), while nothing happens outside Allah's knowledge and will (76:30). Sunni belief affirms both.
If everything is written, why should I do good deeds?
The Prophet ﷺ was asked this and said: "Carry on doing (good) deeds", because each person is eased towards the deeds of the place they were created for (Sahih al-Bukhari 4949).
Is qadr the same as predestination?
It's close. Islam teaches that Allah has decreed all things, but unlike fatalism it also affirms that people choose, act and are responsible.
What are the four levels of qadr?
Allah's knowledge of all things, His writing of them before creation, His will without which nothing happens, and His creation of all things.





