- Published on
Dua for a Test: Prayers for Exam Day
- Authors

- Name
- Ahmad
- Role
- Senior Marketing Manager, Islamic education • DeenUp
بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ
In the name of God, the Most Gracious, the Most Merciful.

Exam day has its own kind of pressure. The material is there — you studied, you reviewed, you revised. But the moment the paper lands in front of you, something tightens in the chest. For Muslims, there is a prophetic response to exactly that feeling: a dua drawn straight from the Quran, recited by one of Allah's greatest Prophets in a moment of overwhelming responsibility.
That dua is not a shortcut around preparation. It is what you say when preparation is done and you step forward with tawakkul — trust in the One who placed the knowledge in your mind.
What Is the Dua for a Test?
The dua for a test most widely used by Muslim students comes from Surah Ta-Ha (20:25-28), the supplication of Prophet Musa (AS) when Allah sent him on the most demanding mission of his life. It asks Allah for three specific gifts — an open, settled chest; ease in the task at hand; and the ability to express what you know clearly. Recited before sitting a test, it reframes the exam as something you are not facing alone.
The Dua: Arabic, Transliteration, and Meaning
رَبِّ اشْرَحْ لِي صَدْرِي وَيَسِّرْ لِي أَمْرِي وَاحْلُلْ عُقْدَةً مِّن لِّسَانِي يَفْقَهُوا قَوْلِي
Rabbi ishrah li sadri wa yassir li amri wahlul 'uqdatan min lisani yafqahu qawli
"My Lord, expand for me my breast, ease for me my task, and untie the knot from my tongue that they may understand my speech."
— Surah Ta-Ha, 20:25-28
When to recite it: Just before entering the exam hall — standing outside the door — and again silently once seated. Some students find it helpful to write the transliteration on a small card and review it the night before so it flows naturally on the day.
A second essential dua — shorter, Quranic, and suitable for the moment you sit down with the paper:
رَبِّ زِدْنِي عِلْمًا
Rabbi zidni 'ilma
"My Lord, increase me in knowledge."
— Surah Ta-Ha, 20:114
This verse is unique: it is the only place in the Quran where Allah directly commanded the Prophet Muhammad (ﷺ) to ask for an increase in something — and that something was knowledge. Reciting it connects you to that same lineage of reliance on Allah for understanding.
Why Musa's Dua Resonates with Students
The context behind Surah Ta-Ha is striking. Musa (AS) had just received the command to go to Pharaoh — one of the most powerful and dangerous men of his time — and deliver the message of truth. He felt his chest constrict at the weight of it. He felt the inadequacy of his speech. And so he turned to Allah before taking a single step.
The parallels for any student are real: the weight of the task, the worry that words will fail you when it matters most, the desire to be understood. Musa's response was not to retreat. It was to ask Allah to prepare him for what lay ahead.
That is tawakkul in action — not passive waiting, but active trust grounded in real effort.
A Third Dua: For When You Feel Stuck Mid-Test
When a difficult question genuinely stops you and frustration rises, the dua of Yunus (AS) is one of the most powerful you can make silently:
لَا إِلَٰهَ إِلَّا أَنتَ سُبْحَانَكَ إِنِّي كُنتُ مِنَ الظَّالِمِينَ
La ilaha illa anta subhanaka inni kuntu minaz-zalimeen
"There is no deity except You; exalted are You. Indeed, I have been of the wrongdoers."
— Surah Al-Anbiya, 21:87
The Prophet (ﷺ) said: "No Muslim ever makes this dua in distress without Allah answering it." (Tirmidhi 3505) It is not a magic formula — but it is an authentic supplication, narrated in reliable hadith, that orients you back to reliance on Allah in any difficult moment.
How to Build This Into Your Exam Preparation
The duas above work best when they are already familiar — not a phrase you are reading for the first time under pressure, but one that flows because you have said it before.
Here is a simple practice pattern:
- After Fajr in the week before the exam: Recite Rabbi zidni 'ilma once as part of your morning adhkar. It takes four seconds and keeps your intention for study aligned with worship. For a structured morning routine, see the DeenUp guide on morning adhkar in Islam.
- Before each study session: Begin with Bismillah and a short silent intention that your study is an act of seeking beneficial knowledge — which the Prophet (ﷺ) described as an obligation on every Muslim (Ibn Majah 224).
- On the night before: Include the full dua of Musa (20:25-28) in your evening prayers. Reading about how to make dua properly can help you approach supplication with the right presence of heart.
- Exam morning: Recite after Fajr, then again standing outside the exam room.
For managing the anxiety that can accompany high-stakes tests, the DeenUp resource on dua for anxiety and stress pairs well with exam preparation.
Track your daily duas and study intentions
DeenUp lets you set dua reminders around your study schedule — morning adhkar, pre-exam supplications, and evening reviews. Build the habit before exam day, not on it.
Download DeenUp on the App StoreRelated Duas at a Glance
| Dua | When to Recite | Source |
|---|---|---|
| رَبِّ اشْرَحْ لِي صَدْرِي... (Musa's dua) | Before the exam begins | Surah Ta-Ha, 20:25-28 |
| رَبِّ زِدْنِي عِلْمًا | Every study session | Surah Ta-Ha, 20:114 |
| لَا إِلَٰهَ إِلَّا أَنتَ سُبْحَانَكَ... | When stuck mid-test | Surah Al-Anbiya, 21:87 |
| اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي | After each study session | Ibn Majah 251 |
The fourth dua — Allahumma infa'ni bima 'allamtani wa 'allimni ma yanfa'uni wa zidni 'ilma — asks Allah to make your existing learning beneficial, to teach you what will help you, and to increase your knowledge. It is a complete supplication for any student finishing a study session.
What the Scholars Say About Dua and Effort
Classical and contemporary scholars agree: dua and asbab (taking means) are not opposites. Ibn Al-Qayyim explained in Madarij al-Salikin that the highest form of tawakkul is acting while the heart remains attached to Allah — not sitting idle while expecting a result.
For a student, this means the dua is the completion of preparation, not the replacement of it. Scholars from Yaqeen Institute have written on how Islamic spirituality supports rather than conflicts with rigorous academic effort — both are part of a coherent Muslim life.
The resources at Seekers Guidance also address the fiqh of seeking beneficial worldly knowledge, affirming that studying medicine, mathematics, science, and other disciplines with sincere intention is a praiseworthy act in Islam.
If your exam preparation also involves managing dua for difficult times, you may find that the supplications overlap — because placing a hard exam in the category of difficulty worth bringing to Allah is itself an act of faith.
For a broader look at exam-related supplications that connect to success in all of life, see dua for exams and success and dua for success and achievement.
You can also explore the comprehensive duas for studying and dua for exams resources already on DeenUp for additional context and practice.
From the deenback blog, this article on mental health in Islam covers how Islamic practice — including dua — helps regulate anxiety, which is directly relevant to exam-day stress. And from the demimanifest blog, the article on hope through hardship speaks to the believer's inner state during challenging moments, which exams certainly are.
Closing: Trust Is Built Before the Test, Not During It
The dua of Musa (AS) was recited before he took a step toward Pharaoh — not while standing in the palace, scrambling. That is the lesson: preparation and supplication belong together, before the moment of pressure arrives.
Memorize the dua now. Say it during the week of preparation. Say it the night before. Say it standing outside the exam hall. By the time the paper is in front of you, the words will come naturally — and the trust they carry will already be settled in your heart.
"And He is with you wherever you are. And Allah, of what you do, is Seeing." — Surah Al-Hadid, 57:4
Build your dua habit before exam season
DeenUp sends you daily supplication reminders — morning adhkar, study intentions, and pre-exam duas — so trust in Allah becomes part of your routine, not just a last-minute request.
Download DeenUp on the App StoreFrequently Asked Questions
What is the dua for a test in Islam?
The most widely used dua for a test is the prayer of Prophet Musa from Surah Ta-Ha (20:25-28): 'Rabbi ishrah li sadri wa yassir li amri' — My Lord, expand my chest and ease my affair. It asks Allah for clarity of mind, ease in the task, and clear expression of what you know.
When should I recite the dua for a test?
Recite the dua for a test before entering the exam room and again once seated with the paper in front of you. Many students also recite it after Fajr on exam day as part of morning adhkar, reinforcing trust in Allah throughout the day and settling the mind before the test begins.
Can I make dua silently during a test?
Yes, you can make dua silently during a test at any moment. If you blank on a question, a brief silent supplication — 'Rabbi zidni ilma' (My Lord, increase me in knowledge) from Surah Ta-Ha (20:114) — helps you reconnect with trust in Allah and refocus without disturbing other students.
Is there a Quran verse that helps with test anxiety?
Surah Al-Anbiya (21:87) records Yunus AS calling out from darkness: 'La ilaha illa anta subhanaka inni kuntu minaz-zalimeen.' The Prophet (peace be upon him) said this dua is answered for any Muslim who recites it in distress (Tirmidhi 3505), making it powerful for exam anxiety.
Do I need to study if I make dua for a test?
Dua does not replace study — it accompanies it. Islamic tradition teaches tawakkul: trust in Allah after taking every reasonable means. The Prophet (peace be upon him) said, 'Tie your camel, then put your trust in Allah' (Tirmidhi 2517). Dua without preparation is an incomplete act of reliance.
What should I do if I forget an answer during a test?
If you forget an answer during a test, pause briefly, recite 'Rabbi zidni ilma' silently, take a breath, and move to the next question — then return later. This combines proven exam technique with the Islamic practice of turning to Allah in moments of genuine need.
How is making dua for a test different from superstition?
Making dua for a test is a deliberate act of worship — directly asking Allah for help after honest preparation. It is rooted in the Quran and confirmed Sunnah. Superstition relies on rituals with no divine basis; dua is a direct connection to the One who controls all outcomes and bestows knowledge.