Published on

Dua for Examination: What to Say Before and During Your Exam

Authors
  • Ahmad
    Name
    Ahmad
    Role
    Senior Marketing Manager, Islamic education • Deen Back

بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ

In the name of God, the Most Gracious, the Most Merciful.

The night before an exam is a particular kind of anxiety. You have studied — or you feel like you have not studied enough. The material swims in your head. Sleep does not come easily.

And somewhere in that anxious night, you find yourself turning to Allah. Not out of obligation, but out of real need. That turning — that genuine reaching — is exactly what dua is supposed to be.

The problem is that most Muslims know they should make dua for their exam, but they are not sure which words to say, when to say them, or how to make it more than a last-minute panic prayer.

This guide gives you the authentic duas for examination from the Quran and Sunnah, and a practical system for making them a real part of how you approach every test.

The Duas for Examination

The Core Dua — Directly from the Quran

رَبِّ زِدْنِي عِلْمًا

Rabbi zidni 'ilma

"My Lord, increase me in knowledge."

— (Quran, Surah Ta-Ha, 20:114)

Three words. Allah told the Prophet ﷺ to say them. The simplest, most direct request possible: more knowledge, from the only One who gives it.

This is your anchor dua. Say it before you open your textbook. Say it before you enter the exam. Say it when you are staring at a question that blanks your mind.

The Dua for Making Things Easy

اللَّهُمَّ لَا سَهْلَ إِلَّا مَا جَعَلْتَهُ سَهْلًا، وَأَنْتَ تَجْعَلُ الْحَزْنَ إِذَا شِئْتَ سَهْلًا

Allahumma la sahla illa ma ja'altahu sahla, wa anta taj'alul-hazna idha shi'ta sahla

"O Allah, nothing is easy except what You make easy, and You make the difficult easy when You will."

— (Ibn Hibban — sahih; widely cited in the tradition)

This dua is about surrendering the outcome. The hardest exam question becomes manageable if Allah wills ease for you. Say this the moment you feel stuck.

The Prophet's Dua for Knowledge

اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Allahumma infa'ni bima 'allamtani, wa 'allimni ma yanfa'uni, wa zidni 'ilma

"O Allah, benefit me with what You have taught me, teach me what will benefit me, and increase me in knowledge."

— (Ibn Majah 251 — hasan)

This is the complete supplication: benefit from existing knowledge + new knowledge + increase in knowledge. A student could build an entire academic career on this one dua.

The Story Behind These Duas

The verse Rabbi zidni ilma (20:114) came down at a specific moment. A group of rabbis in Madinah had challenged the Prophet on certain matters of knowledge. The ayah came to remind him — and through him, all Muslims — that even the Prophet's knowledge is bounded by what Allah gives. And his response was not pride or defensiveness. It was: O Lord, give me more.

The Prophet ﷺ himself was described as someone who constantly sought knowledge. His Companions reported that he would ask Allah for beneficial knowledge in the morning as part of his daily dhikr:

اللَّهُمَّ إِنِّي أَسْأَلُكَ عِلْمًا نَافِعًا

Allahumma inni as'aluka 'ilman nafi'an

"O Allah, I ask You for beneficial knowledge."

— (Ibn Majah 925 — sahih)

This was not said only before exams. It was a daily morning habit. Knowledge was so central to Islamic life that seeking it was treated like any other act of worship — consistent, intentional, and accompanied by supplication.

How to Make Dua for Exams a Real Habit

The mistake most students make: dua only on the day of the exam. Then it feels desperate rather than connected.

Here is a better system:

Before every study session: Say Rabbi zidni 'ilma before opening your notes. This frames studying as an act of seeking what Allah provides, not just cramming information.

During difficult topics: When something refuses to stick, pause. Say Allahumma la sahla illa ma ja'altahu sahla. You are not asking Allah to do the studying for you — you are asking Him to open the path to understanding.

The night before: After Isha, make a proper two-raka'ah voluntary prayer. Then sit and make sincere dua. Ask for retention, recall, focus, and calm. The Prophet said: "Whoever is granted knowledge has been given a great good." (Bukhari 73). You are asking for that great good.

Morning of the exam: After Fajr — which you should already be praying — add Allahumma infa'ni bima allamtani. You have studied. Now ask Allah to make what you studied actually come to you when you need it.

During the exam when stuck: Rabbi zidni 'ilma internally. It takes two seconds and refocuses your mind from panic to trust.

Build Your Pre-Exam Dua Routine with DeenBack

DeenBack helps you track daily duas and build consistent supplication habits — so you come to your exam prepared spiritually, not just academically.

Download on the App StoreGet it on Google Play

Free download. Premium features available in-app.

Dua for focus and concentration:

اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْهَمِّ وَالْحَزَنِ

Allahumma inni a'udhu bika minal-hammi wal-hazan

"O Allah, I seek refuge in You from worry and grief." — (Sahih Bukhari 6363)

Dua for gratitude after results:

الْحَمْدُ لِلَّهِ الَّذِي بِنِعْمَتِهِ تَتِمُّ الصَّالِحَاتُ

Alhamdu lillahi alladhi bi-ni'matihi tatimmus-salihat

"Praise be to Allah by Whose grace good deeds are completed." — (Ibn Majah 3803 — hasan)

For more on the self-discipline that makes studying consistent, our article on how to build daily Islamic habits walks through the habit-stacking approach that connects salah, study, and supplication. For focused study sessions, see our dedicated guide on dua for studying — which covers the supplications specifically for long revision periods. And if exam anxiety is running deep, our post on dua for anxiety gives you the full toolkit for calming the heart before the exam.

Common Questions

Should I combine dua with tawakkul and actually study? Yes — and this is not optional. The famous saying attributed to early Muslims: "Tie your camel, then put your trust in Allah." Dua without effort is not tawakkul, it is wishful thinking. Allah blessed those who combined sincere supplication with sincere preparation. Dua and study are not in competition.

Is it wrong to make dua only when I am worried about an exam? It is better than not making dua at all. But the goal is to build dua into your daily life so that supplication comes from a place of relationship, not just panic. When you already have a habit of daily dua, exam dua feels like continuity, not an emergency.

Can I make dua for specific marks or grades? Yes. Be specific with Allah. The Prophet would be specific in his supplications. "O Allah, help me pass this exam with distinction" is a valid dua. Allah knows your situation and your need — you can bring all of it to Him.

Before Every Exam, Remember This

Knowledge does not come from cramming. It comes from Allah. You do your part — you study, you prepare, you sleep — and then you put your hand in His.

Rabbi zidni 'ilma. My Lord, increase me in knowledge.

Say it now. Say it before the exam. Say it after, when you are grateful. Make it the line you return to every time you pick up a book, open a lecture, or sit in an exam hall.

The student who combines effort with sincere supplication has done everything they can. The rest is Allah's.

Pray with Intention, Study with Consistency

DeenBack tracks your daily duas and spiritual habits — helping you build the kind of tawakkul that carries you through every challenge, including exams.

Download on the App StoreGet it on Google Play

Free download. Premium features available in-app.

Frequently Asked Questions

What is the dua for examination in Islam?

The most authentic dua for examination is Rabbi zidni ilma (My Lord, increase me in knowledge) from Quran 20:114. Also highly recommended: Allahumma la sahla illa ma ja'altahu sahla — O Allah, nothing is easy except what You make easy.

When should I say the dua for exams?

Before studying, before entering the exam hall, and during the exam when you feel stuck. There is no single prescribed moment — the dua is a continuous turning to Allah throughout the preparation and the test itself.

Is there a specific dua the Prophet said for learning?

Yes. The Prophet ﷺ used to say: Allahumma infa'ni bima allamtani, wa allimni ma yanfa'uni, wa zidni ilma — O Allah, benefit me with what You taught me, teach me what will benefit me, and increase me in knowledge (Ibn Majah 251 — hasan).

Can I combine dua with studying or is it only for the exam day?

Dua and study are partners, not substitutes. The scholars of Islam were both people of intense prayer and intense study. Make dua before every study session, not just on exam day — this builds tawakkul (trust in Allah) while also doing your part.

What if I made dua but still failed the exam?

Allah answers dua in three ways: He gives what you asked, He replaces it with something better, or He stores the reward for the hereafter. Failing an exam does not mean your dua was rejected — it may mean Allah has a different path for you. Make dua, do your best, and trust the result.