Skip to main content
Published on

Dua for Exams: What to Say Before, During & After

Authors
  • Sih C.
    Name
    Sih C.
    Role
    Founder & Islamic Content Researcher โ€ข Islamful

Exams carry a particular kind of pressure โ€” the kind that sits in your chest from the night before and follows you through the exam room door. For a Muslim, that pressure has a specific prescription: not the removal of it, but the correct channelling of it toward Allah (SWT).

This article is not about abstract Islamic philosophy on knowledge. It is about what you actually say โ€” before you walk in, when your mind goes blank, and after you walk out. These are the specific supplications, with their Arabic text, sources, and the moments they are designed for.

What Seeking Knowledge Means in Islam

Before the duas, it is worth grounding yourself in why this matters.

Allah ๏ทป says in the Quran:

ูŠูŽุฑู’ููŽุนู ุงู„ู„ูŽู‘ู‡ู ุงู„ูŽู‘ุฐููŠู†ูŽ ุขู…ูŽู†ููˆุง ู…ูู†ูƒูู…ู’ ูˆูŽุงู„ูŽู‘ุฐููŠู†ูŽ ุฃููˆุชููˆุง ุงู„ู’ุนูู„ู’ู…ูŽ ุฏูŽุฑูŽุฌูŽุงุชู

Yarfa'illahul-ladhina amanu minkum wal-ladhina utul-'ilma darajat

"Allah will raise those who have believed among you and those who were given knowledge, by degrees."

Source: Surah Al-Mujadila, 58:11

The exam you are sitting is part of a path toward knowledge. That path has a status with Allah. The Prophet Muhammad (peace be upon him) also said: "Seeking knowledge is an obligation upon every Muslim." (Narrated by Ibn Majah, 224.)

When you make dua before an exam, you are not just asking for a grade. You are asking for help on a path that Allah Himself has elevated.

Before the Exam

1. Pray 2 Rakat Nafl

Before you open your books or before you leave for the exam hall, pause and pray 2 rakat of voluntary prayer. Prayer is itself the most direct form of dua โ€” you are standing before Allah and asking for His assistance before you attempt anything.

This is not superstition. It is a deliberate act of anchoring your effort in reliance on Allah. It sets the frame: you are not doing this alone.

If you are at home before studying, pray 2 rakat and then begin. If you have time before arriving at the exam, pray 2 rakat at Fajr or Duha time with the specific intention of asking Allah to ease what is ahead.

2. "Rabbi Zidni Ilma" โ€” The Dua for Knowledge

This is the shortest Quranic supplication for knowledge. It is three words โ€” and it was revealed as a direct divine command to the Prophet ๏ทบ to say it, which makes it unique among all duas.

Arabic:

ุฑูŽู‘ุจูู‘ ุฒูุฏู’ู†ููŠ ุนูู„ู’ู…ู‹ุง

Transliteration:

Rabbi zidni 'ilma

Translation:

"My Lord, increase me in knowledge."

Source: Surah Ta-Ha, 20:114

Recite this throughout your study sessions, not just on the morning of the exam. It connects every hour of preparation to its true purpose โ€” seeking knowledge for Allah's sake. As you sit down in the exam room, say it quietly before you turn over the paper.

3. Dua for Ease โ€” Before You Walk In

This is the dua to recite at the exam hall door, or as you sit down and wait for the exam to begin. It makes a direct theological statement: ease is not guaranteed by effort โ€” it is granted by Allah.

Arabic:

ุงู„ู„ูŽู‘ู‡ูู…ูŽู‘ ู„ูŽุง ุณูŽู‡ู’ู„ูŽ ุฅูู„ูŽู‘ุง ู…ูŽุง ุฌูŽุนูŽู„ู’ุชูŽู‡ู ุณูŽู‡ู’ู„ู‹ุงุŒ ูˆูŽุฃูŽู†ู’ุชูŽ ุชูŽุฌู’ุนูŽู„ู ุงู„ู’ุญูŽุฒู’ู†ูŽ ุฅูุฐูŽุง ุดูุฆู’ุชูŽ ุณูŽู‡ู’ู„ู‹ุง

Transliteration:

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

Translation:

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

Source: Narrated by Ibn Hibban, 974

When you say this dua, you are acknowledging something important: all of your preparation โ€” every hour of studying, every past paper, every revision note โ€” does not guarantee ease. Allah's will does. That is not defeatism. It is the most honest thing a student can say before an exam.

morning

ุฃูŽุตู’ุจูŽุญู’ู†ูŽุง ูˆูŽุฃูŽุตู’ุจูŽุญูŽ ุงู„ู’ู…ูู„ู’ูƒู ู„ูู„ูŽู‘ู‡ูุŒ ูˆูŽุงู„ู’ุญูŽู…ู’ุฏู ู„ูู„ูŽู‘ู‡ูุŒ ู„ูŽุง ุฅูู„ูŽู‡ูŽ ุฅูู„ูŽู‘ุง ุงู„ู„ูŽู‘ู‡ู ูˆูŽุญู’ุฏูŽู‡ู ู„ูŽุง ุดูŽุฑููŠูƒูŽ ู„ูŽู‡ูุŒ ู„ูŽู‡ู ุงู„ู’ู…ูู„ู’ูƒู ูˆูŽู„ูŽู‡ู ุงู„ู’ุญูŽู…ู’ุฏู ูˆูŽู‡ููˆูŽ ุนูŽู„ูŽู‰ ูƒูู„ูู‘ ุดูŽูŠู’ุกู ู‚ูŽุฏููŠุฑูŒ

Asbahna wa asbahal-mulku lillah, walhamdu lillah, la ilaha illallahu wahdahu la shareeka lah, lahul-mulku walahul-hamd, wahuwa 'ala kulli shay'in qadeer

We have reached the morning and at this very time all sovereignty belongs to Allah. All praise is for Allah. None has the right to be worshipped except Allah alone, without partner. To Him belongs all sovereignty and praise, and He is over all things omnipotent.

Abu Dawud 4:317

morning

ุงู„ู„ูŽู‘ู‡ูู…ูŽู‘ ุจููƒูŽ ุฃูŽุตู’ุจูŽุญู’ู†ูŽุงุŒ ูˆูŽุจููƒูŽ ุฃูŽู…ู’ุณูŽูŠู’ู†ูŽุงุŒ ูˆูŽุจููƒูŽ ู†ูŽุญู’ูŠูŽุงุŒ ูˆูŽุจููƒูŽ ู†ูŽู…ููˆุชูุŒ ูˆูŽุฅูู„ูŽูŠู’ูƒูŽ ุงู„ู†ูู‘ุดููˆุฑู

Allahumma bika asbahna, wa bika amsayna, wa bika nahya, wa bika namootu, wa ilaykan-nushoor

O Allah, by Your leave we have reached the morning and by Your leave we have reached the evening, by Your leave we live and die, and unto You is our resurrection.

At-Tirmidhi 5:466

morning

ุงู„ู„ูŽู‘ู‡ูู…ูŽู‘ ุฅูู†ูู‘ูŠ ุฃูŽุณู’ุฃูŽู„ููƒูŽ ุงู„ู’ุนูŽุงูููŠูŽุฉูŽ ูููŠ ุงู„ุฏูู‘ู†ู’ูŠูŽุง ูˆูŽุงู„ู’ุขุฎูุฑูŽุฉูุŒ ุงู„ู„ูŽู‘ู‡ูู…ูŽู‘ ุฅูู†ูู‘ูŠ ุฃูŽุณู’ุฃูŽู„ููƒูŽ ุงู„ู’ุนูŽูู’ูˆูŽ ูˆูŽุงู„ู’ุนูŽุงูููŠูŽุฉูŽ ูููŠ ุฏููŠู†ููŠ ูˆูŽุฏูู†ู’ูŠูŽุงูŠูŽ ูˆูŽุฃูŽู‡ู’ู„ููŠ ูˆูŽู…ูŽุงู„ููŠ

Allahumma inni as'alukal-'afiyah fid-dunya wal-akhirah. Allahumma inni as'alukal-'afwa wal-'afiyah fi deeni wa dunyaya wa ahli wa maali

O Allah, I ask You for well-being in this world and the next. O Allah, I ask You for pardon and well-being in my religious and worldly affairs, and my family and my wealth.

Abu Dawud 4:316, Ibn Majah 2:332

View all 77 duas โ†’

During the Exam โ€” When You Go Blank

Every student knows this moment. You read a question and your mind empties. What you studied is there somewhere, but it will not come.

Istighfar: "Astaghfirullah"

The first thing to do is not re-read the question ten times in rising panic. Say "Astaghfirullah" โ€” I seek forgiveness from Allah โ€” quietly, three times.

Istighfar is not just for sin. The Prophet ๏ทบ said: "Whoever regularly seeks forgiveness, Allah will make for him a relief from every worry, and a way out from every hardship." (Narrated by Abu Dawud, 1518; Ibn Majah, 3819.)

Seeking forgiveness in that moment is an act of returning to Allah mid-exam. It is a micro-tawakkul โ€” a brief re-centering before you continue.

The Dua for an Open Chest and Clear Thought

After the istighfar, recite this dua quietly:

Arabic:

ุฑูŽุจูู‘ ุงุดู’ุฑูŽุญู’ ู„ููŠ ุตูŽุฏู’ุฑููŠ ูˆูŽูŠูŽุณูู‘ุฑู’ ู„ููŠ ุฃูŽู…ู’ุฑููŠ

Transliteration:

Rabbi ishrah li sadri wa yassir li amri

Translation:

"My Lord, expand for me my chest and ease for me my affair."

Source: Surah Ta-Ha, 20:25-26

This is part of the dua of Prophet Musa (Moses, peace be upon him) before he faced Pharaoh โ€” the most difficult public challenge imaginable. An open chest means mental clarity and the absence of anxiety. Ease in the affair means smooth recall. These are exactly what you need when you have hit a wall in an exam.

You do not need to say the full dua of Musa every time. The first two lines โ€” Rabbi ishrah li sadri wa yassir li amri โ€” are enough. Lower your gaze for a moment, say it once, then return to the question.

After the Exam

Shukr: "Alhamdulillah"

When you walk out, the first word should be "Alhamdulillah" โ€” All praise is due to Allah.

This is not a formality. The Prophet ๏ทบ said: "The first to be called to Paradise will be those who praise Allah in every circumstance." (Narrated by al-Hakim, 1/499.) Alhamdulillah is said regardless of how the exam went. If it went well โ€” alhamdulillah. If it was hard โ€” alhamdulillah. If you do not know yet โ€” alhamdulillah.

The Arabic root hamd does not just mean gratitude for something pleasant. It means recognition of Allah's perfection and rightness in all things. Saying alhamdulillah after a difficult exam is an act of faith: you are stating that whatever outcome comes from this is within Allah's wisdom.

Release the Outcome

Once you leave the exam room, your part is finished. The result is Allah's to determine. This is the hardest part โ€” not the exam itself, but the waiting.

The companion narrated that a man asked the Prophet ๏ทบ whether he should leave his camel untied and trust in Allah or tie it and trust in Allah. The Prophet ๏ทบ replied: "Tie your camel, then put your trust in Allah." (Narrated by al-Tirmidhi, 2517. Graded hasan.)

You tied the camel during every study session. You have now released it at the exam door. What happens next is tawakkul โ€” genuine, active trust in Allah's decree.

The Role of Exam Anxiety in Islam

Exam anxiety is not a weakness of faith. The Prophet ๏ทบ himself experienced distress and was given specific duas for it. For the full collection of supplications for worry and distress, see dua for anxiety. Allah ๏ทป describes the human being as created in a state of restlessness (Surah Al-Ma'arij, 70:19) โ€” this is not a flaw. It is the engine that drives us toward Allah.

If you are fasting during exam period, see dua for breaking fast โ€” the moment of Iftar is one of the most powerful times for dua to be accepted.

The Islamic answer to exam anxiety is not suppression. It is redirection. Instead of channelling the nervous energy into panic or catastrophising, you channel it into dua, into preparation, into salah. The anxiety becomes fuel for the right actions rather than a paralysing force.

Two practical anchors for exam period anxiety:

First: Pray your five daily prayers on time during exam period. This is non-negotiable. The structure of salah โ€” five fixed points in the day where you stand before Allah โ€” is a built-in anxiety management system. Missing prayers during exams because you are "too busy studying" is exactly backwards.

Second: Make dua in sujud (prostration) during your prayers. The Prophet ๏ทบ said: "The closest a servant is to his Lord is when he is in prostration, so increase your duas." (Narrated by Muslim, 482.) The morning of your exam, in your Fajr sujud, ask Allah for clarity, ease, and whatever outcome is best for you. The dua for qunoot in Witr prayer is another powerful moment to ask for ease and guidance.

Summary: What to Say and When

The night before: In your sujud during Isha, make dua โ€” ask for clarity of mind, good sleep, and ease in what is coming. Recite "Rabbi zidni 'ilma" as you close your books.

Before studying each session: Pray 2 rakat nafl. Recite "Rabbi zidni 'ilma" and begin.

Walking into the exam: "Allahumma la sahla illa ma ja'altahu sahla, wa anta taj'alul-hazna idha shi'ta sahla."

Sitting down: "Rabbi zidni 'ilma."

When stuck mid-exam: "Astaghfirullah" three times, then "Rabbi ishrah li sadri wa yassir li amri."

Walking out: "Alhamdulillah."

During the wait for results: "Tawakkul โ€” release it. It is in Allah's hands."

For the full collection of authenticated duas for every occasion, visit the dua collection. Check your prayer times so you do not miss Fajr the morning of your exam โ€” one of the best windows for dua. And if questions arise about permissible study methods or exam practices, the halal and haram checker gives you instant answers with Islamic references.

Wallahu a'lam โ€” ูˆุงู„ู„ู‡ ุฃุนู„ู… โ€” Allah knows best.

Frequently Asked Questions

What dua should I say right before entering the exam hall?

Say "Allahumma la sahla illa ma ja'altahu sahla, wa anta taj'alus-sa'ba idha shi'ta sahla" โ€” O Allah, nothing is easy except what You make easy, and You make the difficult easy when You will. This is reported by Ibn Hibban (974). Pair it with "Rabbi zidni 'ilma" (Surah Ta-Ha, 20:114) โ€” My Lord, increase me in knowledge โ€” as you sit down.

What should I say when I go blank during an exam?

Say "Astaghfirullah" quietly and follow it with "Rabbi ishrah li sadri wa yassir li amri" (Surah Ta-Ha, 20:25-26) โ€” My Lord, expand my chest and ease my affair. Istighfar (seeking forgiveness) is reported to open doors and bring clarity. It refocuses you away from panic and back to reliance on Allah.

Is exam anxiety normal in Islam?

Yes. Anxiety is a human experience that the Prophet ๏ทบ himself felt and was given supplications for. Islam does not treat anxiety as a sign of weak faith โ€” it treats it as a natural condition that is addressed through dua, preparation, and tawakkul. The answer to exam anxiety is not suppression but turning to Allah.

Does dua replace studying for an exam?

No. Tawakkul (trust in Allah) requires that you do your part first. The Prophet ๏ทบ said: "Tie your camel, then put your trust in Allah." (Narrated by al-Tirmidhi, 2517.) Studying is tying the camel. Dua is the tawakkul that follows. Both are obligatory parts of the same action.

Is praying 2 rakat before an exam recommended?

Yes. Praying 2 rakat nafl (voluntary prayer) before studying or entering an exam is a well-established practice among Muslim students. Prayer is itself a form of dua. The act of pausing to pray before a major task anchors your intention, re-centres your reliance on Allah, and is one of the most effective ways to bring calm before an exam.