If you search for a dua for exam success, you will find long lists of "special exam duas" with promises attached. The honest answer is simpler: there is no specific supplication in the Quran or authentic Sunnah that was taught only for exams. What we do have are beautiful, authentic supplications for knowledge, understanding, ease and calm, said by prophets in the Quran and by the Prophet Muhammad ﷺ. Those are exactly what a student needs. This page gives you the best of them with Arabic, transliteration and meaning, and a practical study-and-supplication routine.
This is part of our guide to Daily Duas From Hisn al-Muslim. For more everyday supplications, browse our Hisn al-Muslim duas.
Is there a dua for exams in the Sunnah?
Exams in the modern sense did not exist in the Prophet's time, so it is no surprise that there is no narration that says "say this before an exam". Be careful with forwarded messages that attach a fixed reward, a fixed number of repetitions or a guaranteed grade to a particular phrase. If no source is given, or the source cannot be checked, do not treat it as Sunnah.
What you can do, with complete confidence, is use the supplications Allah and His Messenger ﷺ taught for knowledge and for ease, in any language you like, and combine them with real effort. Supplication and revision work together; one does not replace the other.
Rabbi zidni 'ilma: the Quran's dua for knowledge
Allah taught the Prophet ﷺ to ask for one thing to be increased: knowledge.
وَقُل رَّبِّ زِدْنِى عِلْمًۭا
Transliteration: Wa qur-Rabbi zidni 'ilma.
Meaning: "And say, 'My Lord, increase me in knowledge.'"
(Quran 20:114)
The full verse begins: "So high [above all] is Allah, the Sovereign, the Truth. And, [O Muhammad], do not hasten with [recitation of] the Qur'an before its revelation is completed to you…" It teaches patience in learning and then gives the supplication. "Rabbi zidni 'ilma" is the best single line to say before you open your books.
Musa's dua: Rabbish-rahli sadri
Before the Prophet Musa (peace be upon him) went to face Pharaoh, the hardest "exam" of his life, he asked:
قَالَ رَبِّ ٱشْرَحْ لِى صَدْرِى ﴿٢٥﴾ وَيَسِّرْ لِىٓ أَمْرِى ﴿٢٦﴾ وَٱحْلُلْ عُقْدَةًۭ مِّن لِّسَانِى ﴿٢٧﴾ يَفْقَهُوا۟ قَوْلِى
Transliteration: Rabbish-rah li sadri, wa yassir li amri, wahlul 'uqdatan min lisani, yafqahu qawli.
Meaning: "My Lord, expand for me my breast [with assurance] and ease for me my task and untie the knot from my tongue that they may understand my speech."
(Quran 20:25-28)
Students love this one, and it fits perfectly before an oral exam, a presentation or an interview: calm in the chest, ease in the task, clear words. You can read the whole story of Musa in our Surah 20 with translation.
Prophetic duas for studying and beneficial knowledge
"Allahummanfa'ni bima 'allamtani"
Abu Hurairah narrated that the Messenger of Allah ﷺ said:
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي وَعَلِّمْنِي مَا يَنْفَعُنِي وَزِدْنِي عِلْمًا الْحَمْدُ لِلَّهِ عَلَى كُلِّ حَالٍ وَأَعُوذُ بِاللَّهِ مِنْ حَالِ أَهْلِ النَّارِ
Transliteration: Allahummanfa'ni bima 'allamtani, wa 'allimni ma yanfa'uni, wa zidni 'ilma. Al-hamdu lillahi 'ala kulli hal, wa a'udhu billahi min hali ahlin-nar.
Meaning: "O Allah, benefit me with that which You have taught me, and teach me that which will benefit me, and increase me in knowledge. All praise is due to Allah in every condition, and I seek refuge in Allah from the condition of the people of the Fire."
At-Tirmidhi describes this hadith as hasan gharib from this chain (Jami' at-Tirmidhi, no. 3683 (Masaajidh edition)). Scholars differ on its grading, so ask a qualified teacher if this matters to you; the meaning is fully supported by the Quranic "Rabbi zidni ‘ilma".
This is an excellent dua for studying: you ask for knowledge that benefits, for the ability to use what you already learned, and you praise Allah whatever the result.
"Allahumma inni as'aluka 'ilman nafi'a"
Umm Salamah reported that when the Prophet ﷺ prayed Fajr, as he said the salam he would say:
اللَّهُمَّ إِنِّي أَسْأَلُكَ عِلْمًا نَافِعًا، وَرِزْقًا طَيِّبًا، وَعَمَلاً مُتَقَبَّلاً
Transliteration: Allahumma inni as'aluka 'ilman nafi'an, wa rizqan tayyiban, wa 'amalan mutaqabbalan.
Meaning: "O Allah, I ask You for beneficial knowledge, goodly provision and acceptable deeds."
(Sunan Ibn Majah, no. 659 (Masaajidh edition); Hisn al-Muslim, duas 73 and 95.)
Seeking refuge from useless knowledge
Zaid ibn Arqam reported that the Prophet ﷺ used to say, among other words: "O Allah, I seek refuge in Thee from the knowledge which does not benefit, from the heart that does not entertain the fear (of Allah), from the soul that does not feel contented and the supplication that is not responded." (Sahih Muslim, no. 6738 (Masaajidh edition).)
اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ عِلْمٍ لاَ يَنْفَعُ وَمِنْ قَلْبٍ لاَ يَخْشَعُ وَمِنْ نَفْسٍ لاَ تَشْبَعُ وَمِنْ دَعْوَةٍ لاَ يُسْتَجَابُ لَهَا
It is a good reminder that the goal of study is not only a grade but knowledge that does you and others good.
Duas for exam stress and difficult questions
When something feels too hard
اللَّهُمَّ لاَ سَهْلَ إِلاَّ مَا جَعَلْتَهُ سَهْلاً، وَأَنْتَ تَجْعَلُ الْحَزْنَ إِذَا شِئْتَ سَهْلاً
Transliteration: Allahumma la sahla illa ma ja'altahu sahla, wa anta taj'alul-hazna idha shi'ta sahla.
Meaning: "O Allah, there is no ease except in that which You have made easy, and You make the difficulty, if You wish, easy."
(Hisn al-Muslim, chapter 43, dua 139: "Invocation for when you find something becoming difficult for you".)
This is a perfect line to say quietly when you turn over the paper and the first question looks impossible.
For anxiety and worry
Anas ibn Malik reported that the Prophet ﷺ used to say:
اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْهَمِّ وَالْحَزَنِ، وَالْعَجْزِ وَالْكَسَلِ، وَالْجُبْنِ وَالْبُخْلِ، وَضَلَعِ الدَّيْنِ، وَغَلَبَةِ الرِّجَالِ
Transliteration: Allahumma inni a'udhu bika minal-hammi wal-hazan, wal-'ajzi wal-kasal, wal-jubni wal-bukhl, wa dala'id-dayn, wa ghalabatir-rijal.
Meaning: "O Allah! I seek refuge with You from worry and grief, from incapacity and laziness, from cowardice and miserliness, from being heavily in debt and from being overpowered by (other) men."
(Sahih al-Bukhari, no. 6132 (Masaajidh edition); Hisn al-Muslim, dua 121.)
Notice "incapacity and laziness" in the middle. It is a supplication against procrastination as much as against stress.
A study-and-supplication routine
| When | What to say or do |
|---|---|
| After Fajr | "Allahumma inni as'aluka 'ilman nafi'a…" then a focused study block while your mind is fresh |
| Before each study session | "Rabbi zidni 'ilma" |
| When a topic will not go in | "Allahumma la sahla illa ma ja'altahu sahla…", then take a short break |
| Night before the exam | Make wudu, pray, ask Allah in sujood for ease, then sleep on time |
| Walking into the hall | "Rabbish-rah li sadri, wa yassir li amri…" |
| Results day | "Al-hamdu lillahi 'ala kulli hal", praise in every condition |
Practical habits matter just as much: a regular sleep pattern, short focused sessions, past papers, and asking your teacher when you are stuck. The Prophet ﷺ said: "…he who treads the path in search of knowledge, Allah would make that path easy, leading to Paradise for him" (Sahih Muslim, no. 6687 (Masaajidh edition)). Every hour of honest study can be worship if your intention is right.
Two more habits help. First, eat properly and remember the mealtime Sunnah; skipping meals during revision rarely helps, and our page on the dua before and after eating has the words. Second, keep your heart light by seeking forgiveness regularly. Many students find that a few minutes of istighfar clears the mind; see duas for forgiveness, including Sayyid al-Istighfar.
For parents: supporting a child through exams
- Pray for them by name. The supplication of a parent (al-walid) is one of three the Prophet ﷺ said are answered (Sunan Abi Dawud, no. 1537 (Masaajidh edition)).
- Teach one line, not ten. "Rabbi zidni 'ilma" is enough to start.
- Keep the focus on effort and trust, not on the grade. Remind them that the result is from Allah and their job is to do their best.
Conclusion
There is no secret exam formula in the Sunnah, and you do not need one. Say "Rabbi zidni 'ilma" before you study, Musa's supplication before you walk in, and "Allahumma la sahla…" when a question is hard. Then put in the work and leave the result with Allah. When you want more supplications for daily life, visit our Hisn al-Muslim duas.
Keep learning:
- Daily Duas From Hisn al-Muslim: A Guide With Arabic and Meaning
- Duas for Forgiveness: Sayyid al-Istighfar and More
- Dua Before and After Eating
Frequently asked questions
Is there a specific dua for exams in Islam?
No supplication in the Quran or authentic Sunnah was taught specifically for exams, which did not exist in their modern form at the time. Instead, use authentic supplications for knowledge and ease, such as 'Rabbi zidni 'ilma' (Quran 20:114) and Musa's 'Rabbish-rah li sadri, wa yassir li amri' (Quran 20:25-28), together with honest effort and good preparation.
What dua should I read before an exam?
Many students say Musa's supplication from Quran 20:25-28: 'Rabbish-rah li sadri, wa yassir li amri, wahlul 'uqdatan min lisani, yafqahu qawli', asking Allah to expand the chest, ease the task and make speech clear. When a question feels hard, Hisn al-Muslim's 'Allahumma la sahla illa ma ja'altahu sahla' asks Allah to make the difficult easy.
What is the best dua for studying and memory?
'Rabbi zidni 'ilma', 'My Lord, increase me in knowledge', comes directly from the Quran and is ideal before every study session. At-Tirmidhi also reports 'Allahummanfa'ni bima 'allamtani wa 'allimni ma yanfa'uni wa zidni 'ilma'. Be cautious of messages promising perfect memory from unsourced phrases; combine authentic supplication with revision and rest.
Can I make dua for exams in my own language?
Yes. Outside the prayer you can supplicate in any language, and Allah understands every heart. Many people say a Quranic supplication in Arabic and then explain their need in their own words. Ask for understanding, calm, ease and a result that is good for you in this life and the next, and then accept the outcome with trust.

