Dua for Steadfastness of the Heart
Every believer’s heart knows changing seasons. There are days when faith feels firm, prayer feels sweet, and obedience comes easily — and days when the same heart feels distracted, heavy, and pulled in directions it does not want to go. If that sounds familiar, then this dua for steadfastness is not a specialty prayer for a few people; it is a daily need for every one of us.
The most comforting fact in this article is who taught us this prayer. The Messenger of Allah ﷺ himself — the one sent to guide us — constantly asked Allah to keep his heart firm upon the religion, and it was the supplication he repeated most often. The Quran, too, places this very request on the tongues of the guided: do not let our hearts deviate after You have given us guidance. Steadfastness, as these texts present it, is not something a believer manufactures by willpower and then protects alone. It is a gift that Allah gives, and so it is a gift that Allah is asked for — again and again.
Below are the duas of steadfastness exactly as the Quran and the authentic hadith preserve them, with their Arabic, transliteration, meanings, and references, so that you can take them into your own daily prayers with confidence.
1. The Dua the Prophet ﷺ Made Most Frequently
Shahr bin Hawshab once asked Umm Salamah, the Mother of the Believers, about the supplication the Prophet ﷺ made most often when he was in her home. Her answer gives every believer a treasure:
“Shahr bin Hawshab said: “I said to Umm Salamah: ‘O Mother of the Believers! What was the supplication that the Messenger of Allah (ﷺ) said most frequently when he was with you?” She said: ‘The supplication he said most frequently was: “O Changer of the hearts, make my heart firm upon Your religion (Yā Muqallibal-qulūb, thabbit qalbī `alā dīnik).’”” (Jami` at-Tirmidhi 3522 — Hasan)
Here is the dua itself, ready to learn and repeat:
يَا مُقَلِّبَ الْقُلُوبِ ثَبِّتْ قَلْبِي عَلَى دِينِكَ
Transliteration: Ya muqallibal qulub, thabbit qalbi ‘ala dinik.
Meaning: “O Changer of the hearts, make my heart firm upon Your religion.”
Pause over what this report is telling us. This was not a dua the Prophet ﷺ saved for journeys, battles, or the great nights of the year. It was the supplication he said most frequently in the ordinary setting of his own home, in the hearing of his wife. Steadfastness of the heart, in his practice, was not an emergency measure; it was a daily request, repeated the way a person repeats the thing he needs most. If the best of creation asked Allah for a firm heart this often, no believer after him can afford to treat the request as optional.
2. Why He Repeated It: Every Heart Lies Between Two Fingers of Allah
Umm Salamah herself wondered at how often he made this dua, and she asked him about it. His answer explains the whole subject of this article:
“O Umm Salamah! Verily, there is no human being except that his heart is between Two Fingers of the Fingers of Allah, so whomsoever He wills He makes steadfast, and whomever He wills He causes to deviate.” (Jami` at-Tirmidhi 3522 — Hasan)
The same hadith is also carried in Sahih Muslim, where the version narrated on the authority of Abu Hani is recorded with this note:
“This hadith has been narrated on the authority of Abu Hani with the same chain of transmitters, but there is no mention of” His Throne was upon water.”” (Sahih Muslim 2654 — Sahih)
Read the Prophet’s explanation slowly. There is no human being except — no exceptions are made, not for the strong, not for the learned, not for the one who has been practising for forty years — that his heart is between Two Fingers of the Fingers of Allah. The heart you carry is not finally in your own grip. Whomsoever Allah wills, He makes steadfast; and whomever He wills, He causes to deviate. Steadfastness is therefore something Allah does, and the believer’s part is to keep asking the One who does it.
This is why the dua of the first section is the opposite of despair. The Prophet ﷺ did not respond to this reality with fear or with self-reliance; he responded with supplication, repeated constantly. He knew where hearts are held, so he knew where to direct his asking. Every time you repeat “Ya muqallibal qulub, thabbit qalbi ‘ala dinik,” you are doing exactly what he did, for exactly the reason he gave.
3. The Believers’ Dua in the Quran: “Do Not Let Our Hearts Deviate”
The Quran teaches the same request in words that have been recited by the guided for centuries. Remarkably, this prayer is spoken by people who have already received guidance — and they still ask not to deviate:
رَبَّنَا لَا تُزِغْ قُلُوبَنَا بَعْدَ إِذْ هَدَيْتَنَا وَهَبْ لَنَا مِن لَّدُنكَ رَحْمَةً ۚ إِنَّكَ أَنتَ ٱلْوَهَّابُ
Transliteration: Rabbana la tuzigh qulubana ba’da idh hadaytana, wa hab lana min ladunka rahmah, innaka antal-Wahhab.
““Our Lord, do not let our hearts deviate from the right path after You have given us guidance, and bestow upon us mercy from Your own. Surely, You, and You alone, are the One who bestows in abundance.” (Quran 3:8)
Three things in this short verse deserve attention. First, the request is for protection looking forward: guidance has arrived, and the fear is losing it — do not let our hearts deviate after You have given us guidance. Guidance, in the Quran’s own teaching, is not a possession that can be locked away; it is a state that its recipients themselves beg Allah to preserve. Second, the dua joins protection to a positive request: bestow upon us mercy from Your own. The believers ask not only to be kept from slipping, but to be given more of Allah’s mercy. Third, notice that the prayer is plural — our Lord, our hearts. It is a dua for steadfastness that comfortably carries your family and the whole community of believers inside it. And it closes by naming the One being asked: You, and You alone, are the One who bestows in abundance — al-Wahhab, whose giving is the reason the asking is never in vain.
4. Firm Hearts and Firm Feet on the Hardest Day
Steadfastness is not only about quiet days and private struggles. The Quran preserves a dua spoken at the most pressured moment a believer can face — standing before an enemy army. When the believers faced Jalut and his troops, this is what they said:
وَلَمَّا بَرَزُوا۟ لِجَالُوتَ وَجُنُودِهِۦ قَالُوا۟ رَبَّنَآ أَفْرِغْ عَلَيْنَا صَبْرًا وَثَبِّتْ أَقْدَامَنَا وَٱنصُرْنَا عَلَى ٱلْقَوْمِ ٱلْكَـٰفِرِينَ
Transliteration: Rabbana afrigh ‘alayna sabran wa thabbit aqdamana wansurna ‘alal-qawmil-kafirin.
“And when they faced Jālūt and his troops, they said: “Our Lord, pour out endurance on us, make firm our feet and help us against the disbelieving people.”” (Quran 2:250)
Their prayer holds three requests together, and the order is worth noticing. They asked first for endurance — and not a small measure of it, but endurance poured out upon them. They asked second for firmness where they stood: make firm our feet, the outward twin of the firm heart. And they asked third for Allah’s help against the disbelieving people, placing the outcome with Him rather than with their own numbers or strength. Heart, feet, and outcome — all three were handed to Allah in a single breath, at the very moment when self-confidence would have been most tempting and most useless. Whatever your own “facing” moment looks like — an exam, an illness, a temptation, a decision that frightens you — this is the Quran’s pattern for it: pour your need out to Allah first, and ask Him to make you firm.
5. The Promise Behind the Dua: Allah Keeps the Believers Firm
Why do we keep returning to Allah with this request? Because, as the Quran states plainly, keeping believers firm is something Allah Himself does:
“Allah keeps the believers firm with the stable word in the worldly life and in the Hereafter; and Allah lets the unjust go astray; and Allah does what He wills.” (Quran 14:27)
The verse names the sphere of this firmness twice over: in the worldly life and in the Hereafter. The believer is kept firm by the stable word now, amid the pressures of this life, and kept firm by it then, when firmness will matter most. The same verse carries the warning in its second half — Allah lets the unjust go astray — so the promise and the warning arrive in a single breath, and the verse closes with the same sovereignty the Prophet ﷺ described to Umm Salamah: Allah does what He wills. That is precisely why the response taught by both the Quran and the Prophet ﷺ is dua. We do not beg a reluctant giver; we ask the One who has told us that firmness is His gift and His act.
6. Poured-Out Patience, and a Prayer to Die as Muslims
The Quran also preserves the words of believers who were threatened with punishment for one reason alone: they had believed in the signs of their Lord when those signs came to them. Their answer to the threat was not argument, but this dua:
“For what fault would you punish us except that we have believed in the signs of our Lord when they appeared to us? O our Lord, pour out patience upon us, and cause us to die as Muslims (those who submit to you.)”” (Quran 7:126)
From these believers we learn what steadfastness looks like at its limits. They reached for the same generous request as the believers before Jalut — patience poured out upon them — and then they carried the request to its furthest point: cause us to die as Muslims. Their concern was not merely to survive the moment of pressure, but to remain submitted to Allah to the very end of life. Steadfastness, in the Quran’s presentation, is therefore not only about not falling today. It is about finishing as a Muslim — and that, too, is something these believers asked Allah for rather than assumed for themselves. When the pressure is at its worst, this verse teaches the heart where to go: to Allah, for endurance now and a faithful ending.
7. When Allah Himself Made Hearts Firm
One more verse completes the picture, because it shows the gift of steadfastness from the other side — already given. Allah says of a group who stood up and declared their faith openly:
“We made their hearts firm when they stood up and said, “Our Lord is the Lord of the heavens and the earth. We shall never invoke any god other than Him, otherwise we would be saying something far from the truth.” (Quran 18:14)
We made their hearts firm when they stood up and said… The firming is Allah’s act, stated in His own words — and notice what the firm hearts then did: they stood, and they spoke the truth about their Lord without hedging: Our Lord is the Lord of the heavens and the earth. We shall never invoke any god other than Him. The sequence in the verse is the believer’s whole pattern in miniature. Allah firms the heart; the firmed heart stands and speaks. Our part, as every text in this article repeats, is to keep asking for the first half of that sequence — and the duas gathered here are exactly that asking.
8. Staying Straight: Two Short Duas the Prophet ﷺ Taught ‘Ali
Steadfastness has a direction as well as a firmness: the heart must be held firm upon something — the right path. The Prophet ﷺ taught ‘Ali a short dua that joins guidance and straightness together, and he explained its two halves with an unforgettable picture:
“‘Ali reported that Allah’s Messenger (ﷺ) said to him: Say,” O Allah, direct me to the right path and make me adhere to the straight path,” and when you make a mention of right guidance, keep in mind the right path and when you consider of the straight (path), keep in mind the straightness of the arrow.” (Sahih Muslim 2725a — Sahih)
The dua itself is brief enough to carry everywhere:
اللَّهُمَّ اهْدِنِي وَسَدِّدْنِي
Transliteration: Allahumma-hdini wa saddidni.
Meaning: “O Allah, direct me to the right path and make me adhere to the straight path.”
The explanation the Prophet ﷺ attached to it is part of the teaching: when you ask for guidance, keep the right path in mind; when you ask for straightness, keep in mind the straightness of the arrow — an arrow that does not waver on its way to the target. In another transmitted wording, the same request comes even shorter. The Prophet ﷺ said:
“O Allah, I beg of Thee righteousness and adhering to the straight path.” (Sahih Muslim 2725b — Sahih)
اللَّهُمَّ إِنِّي أَسْأَلُكَ الْهُدَى وَالسَّدَادَ
Transliteration: Allahumma inni as’alukal-huda was-sadad.
Meaning: “O Allah, I beg of Thee righteousness and adhering to the straight path.”
Guidance (huda) and straightness (sadad): the first asks Allah to put you on the path; the second asks Him to keep you moving along it without deviation. Together with “thabbit qalbi ‘ala dinik” — make my heart firm upon Your religion — these short duas cover the whole request of this article, and they are short enough to be said many times a day.
9. Carrying These Duas Through Your Day
Let the pattern of the Prophet ﷺ set your rhythm. His most frequent supplication can become yours: learn “Ya muqallibal qulub, thabbit qalbi ‘ala dinik” by heart and let it recur through your day — at home, at work, whenever the heart feels it turning. Keep it company with remembrance, for a tongue busy with Allah’s names is a heart being held near Him; the virtues of dhikr gathered from the Quran and Sunnah show just how much is promised to those who remember Him. If you already begin your morning with the day’s remembrances, these steadfastness duas sit naturally beside them — the full set is gathered on our morning azkar page.
Recite the Quran’s own words as well: Rabbana la tuzigh qulubana (3:8) for the heart’s protection, and the triple request of 2:250 whenever you stand before something difficult. And when the heart does slip — as hearts do — let steadfastness include the way back: return to Allah with the dua for forgiveness on your tongue, and with the greatest of those prayers, Sayyid al-Istighfar, whose promise the Prophet ﷺ described. The Quran preserves many such prayers of those who came before us; you can explore more of them in our collection of the duas of the prophets in the Quran.
Above all, keep the reason for all this asking in front of you. Your heart is between the Fingers of Allah; He makes steadfast whom He wills. That is not a reason for anxiety — it is the reason dua works, and the reason the most guided person who ever lived asked for steadfastness more than he asked for anything else.
Frequently Asked Questions
Q1. What is the main dua for steadfastness of the heart? It is the supplication the Prophet ﷺ said most frequently: “Ya muqallibal qulub, thabbit qalbi ‘ala dinik” — “O Changer of the hearts, make my heart firm upon Your religion” (Jami` at-Tirmidhi 3522 — Hasan).
Q2. Why did the Prophet ﷺ repeat this dua so often? He explained it to Umm Salamah: every human being’s heart is between Two Fingers of the Fingers of Allah, “so whomsoever He wills He makes steadfast, and whomever He wills He causes to deviate” — so he kept asking the One who holds every heart (Jami` at-Tirmidhi 3522 — Hasan).
Q3. Which dua in the Quran asks Allah not to let our hearts deviate? The prayer of Quran 3:8: “Our Lord, do not let our hearts deviate from the right path after You have given us guidance, and bestow upon us mercy from Your own” (Quran 3:8).
Q4. What did the believers facing Jalut ask Allah for? Three things in one dua: endurance poured out upon them, firm feet, and help against the disbelieving people (Quran 2:250).
Q5. Did the Prophet ﷺ teach any other dua for staying on the straight path? Yes. He taught ‘Ali to say, “O Allah, direct me to the right path and make me adhere to the straight path” (Sahih Muslim 2725a — Sahih), and in another wording, “O Allah, I beg of Thee righteousness and adhering to the straight path” (Sahih Muslim 2725b — Sahih).

One Comment