The Istikhara Dua — Bukhari 1166 · 6382 · 7390
One teaching, printed three times in Sahih al-Bukhari. This page prints the first narration whole, then sets the other two beside it — the same dua in three places, each as its source gives it, with the small differences between them left standing and nothing added.
Short answer: Bukhari prints Jabir’s narration of the istikhara teaching three times, at 1166, 6382 and 7390, and this page prints the first of them whole, then sets the other two beside it: the same dua, in three places, with its small wording differences left standing.
ImanAtlas does not give fatwas. For your own situation, ask a qualified scholar you trust.
Beyond the frame the narration itself gives, this page adds nothing — no count, no course, no sign to wait for.
Istikhara is a prayer, a salah a person offers when a decision is in front of them, and the dua on this page is the one its narration carries. This site does not teach the prayer: there are no steps here, no method, and no ruling about anyone’s case. What this page does is narrower and, for this dua, new: it prints the narration’s text with its sources, at every place Bukhari himself put it. Duas for Exams, Success & Istikhara cites the first printing, Bukhari 1166. The other two printings — 6382 and 7390 — stand below beside it.
The dua itself — Sahih al-Bukhari 1166
Jabir ibn ‘Abdullah’s narration, whole, as Duas for Exams, Success & Istikhara prints it: the teaching frame, the dua in Arabic, and sunnah.com’s printed translation. Bukhari places it in his Book of Tahajjud (in-book: Book 19, Hadith 45).
اللَّهُمَّ إِنِّي أَسْتَخِيرُكَ بِعِلْمِكَ وَأَسْتَقْدِرُكَ بِقُدْرَتِكَ، وَأَسْأَلُكَ مِنْ فَضْلِكَ الْعَظِيمِ، فَإِنَّكَ تَقْدِرُ وَلاَ أَقْدِرُ وَتَعْلَمُ وَلاَ أَعْلَمُ وَأَنْتَ عَلاَّمُ الْغُيُوبِ، اللَّهُمَّ إِنْ كُنْتَ تَعْلَمُ أَنَّ هَذَا الأَمْرَ خَيْرٌ لِي فِي دِينِي وَمَعَاشِي وَعَاقِبَةِ أَمْرِي ـ أَوْ قَالَ عَاجِلِ أَمْرِي وَآجِلِهِ ـ فَاقْدُرْهُ لِي وَيَسِّرْهُ لِي ثُمَّ بَارِكْ لِي فِيهِ، وَإِنْ كُنْتَ تَعْلَمُ أَنَّ هَذَا الأَمْرَ شَرٌّ لِي فِي دِينِي وَمَعَاشِي وَعَاقِبَةِ أَمْرِي ـ أَوْ قَالَ فِي عَاجِلِ أَمْرِي وَآجِلِهِ ـ فَاصْرِفْهُ عَنِّي وَاصْرِفْنِي عَنْهُ، وَاقْدُرْ لِي الْخَيْرَ حَيْثُ كَانَ ثُمَّ أَرْضِنِي بِهِ
Allahumma inni astakhiruka bi-‘ilmik, wa astaqdiruka bi-qudratik, wa as’aluka min fadlikal-‘azim. Fa-innaka taqdiru wa la aqdir, wa ta’lamu wa la a’lam, wa anta ‘Allamul-ghuyub. Allahumma in kunta ta’lamu anna hadhal-amra khayrun li fi dini wa ma’ashi wa ‘aqibati amri — aw qala ‘ajili amri wa ajilih — faqdurhu li wa yassirhu li thumma barik li fih. Wa in kunta ta’lamu anna hadhal-amra sharrun li fi dini wa ma’ashi wa ‘aqibati amri — aw qala fi ‘ajili amri wa ajilih — fasrifhu ‘anni wasrifni ‘anh, waqdir liyal-khayra haythu kan, thummar-dini bih.
“Narrated Jabir bin `Abdullah: The Prophet (p.b.u.h) used to teach us the way of doing Istikhara (Istikhara means to ask Allah to guide one to the right sort of action concerning any job or a deed), in all matters as he taught us the Suras of the Qur’an. He said, "If anyone of you thinks of doing any job he should offer a two rak`at prayer other than the compulsory ones and say (after the prayer): — ‘Allahumma inni astakhiruka bi’ilmika, Wa astaqdiruka bi-qudratika, Wa as’alaka min fadlika Al-`azlm Fa-innaka taqdiru Wala aqdiru, Wa ta’lamu Wala a’lamu, Wa anta ‘allamu l-ghuyub. Allahumma, in kunta ta’lam anna hadha-lamra Khairun li fi dini wa ma’ashi wa’aqibati `Amri (or ‘ajili `Amri wa’ajilihi) Faqdirhu wa yas-sirhu li thumma barik li Fihi, Wa in kunta ta’lamu anna hadha-lamra shar-run li fi dini wa ma’ashi wa’aqibati `Amri (or fi’ajili `Amri wa ajilihi) Fasrifhu anni was-rifni anhu. Waqdir li al-khaira haithu kana Thumma ardini bihi.’ (O Allah! I ask guidance from Your knowledge, And Power from Your Might and I ask for Your great blessings. You are capable and I am not. You know and I do not and You know the unseen. O Allah! If You know that this job is good for my religion and my subsistence and in my Hereafter–(or said: If it is better for my present and later needs)–Then You ordain it for me and make it easy for me to get, And then bless me in it, and if You know that this job is harmful to me In my religion and subsistence and in the Hereafter–(or said: If it is worse for my present and later needs)–Then keep it away from me and let me be away from it. And ordain for me whatever is good for me, And make me satisfied with it). The Prophet (ﷺ) added that then the person should name (mention) his need."”
Sahih al-Bukhari 1166
Two notes on this block, carried from that page. The printed translation is the older USC-MSA rendering, and it renders “this matter” (hadha-l-amr) as “this job”; it is printed exactly as the source prints it, and this page’s own words always say “the matter”. And the transliteration line under the Arabic is a derivation that tracks the Arabic word by word — the romanisation printed inside sunnah.com’s own translation of this narration is not used as a line, because it does not track the Arabic it stands under: it drops one of the dua’s words and misprints another. Inside the quoted translation above, that romanisation stands as the source prints it; as a line of its own, it was refused.
The same teaching, a second time — Bukhari 6382
Bukhari prints the narration again in his Book of Invocations, in a chapter he heads “The invocation on making Istikharah” (in-book: Book 80, Hadith 77). The translation again carries the dua in romanised form, as 1166’s does. Read the good branch closely — it is shorter here, and the difference section below takes it up.
اللَّهُمَّ إِنِّي أَسْتَخِيرُكَ بِعِلْمِكَ، وَأَسْتَقْدِرُكَ بِقُدْرَتِكَ، وَأَسْأَلُكَ مِنْ فَضْلِكَ الْعَظِيمِ، فَإِنَّكَ تَقْدِرُ وَلاَ أَقْدِرُ، وَتَعْلَمُ وَلاَ أَعْلَمُ، وَأَنْتَ عَلاَّمُ الْغُيُوبِ، اللَّهُمَّ إِنْ كُنْتَ تَعْلَمُ أَنَّ هَذَا الأَمْرَ خَيْرٌ لِي فِي دِينِي وَمَعَاشِي وَعَاقِبَةِ أَمْرِي ـ أَوْ قَالَ عَاجِلِ أَمْرِي وَآجِلِهِ ـ فَاقْدُرْهُ لِي، وَإِنْ كُنْتَ تَعْلَمُ أَنَّ هَذَا الأَمْرَ شَرٌّ لِي فِي دِينِي وَمَعَاشِي وَعَاقِبَةِ أَمْرِي ـ أَوْ قَالَ فِي عَاجِلِ أَمْرِي وَآجِلِهِ ـ فَاصْرِفْهُ عَنِّي وَاصْرِفْنِي عَنْهُ، وَاقْدُرْ لِيَ الْخَيْرَ حَيْثُ كَانَ، ثُمَّ رَضِّنِي بِهِ وَيُسَمِّي حَاجَتَهُ
“Narrated Jabir: The Prophet (ﷺ) used to teach us the Istikhara for each and every matter as he used to teach us the Suras from the Holy Qur’an. (He used to say), "If anyone of you intends to do something, he should offer a two-rak`at prayer other than the obligatory prayer, and then say: ‘Allahumma inni astakhiruka bi’ilmika, wa astaqdiruka biqudratika, wa as’aluka min fadlika-l-‘azim, fa innaka taqdiru wala aqdiru, wa ta’lamu wala a’lamu, wa anta’allamu-l-ghuyub. Allahumma in kunta ta’lamu anna hadha-lamra khairun li fi dini wa ma’ashi wa ‘aqibati `Amri (or said, fi ‘ajili `Amri wa ajilihi) fa-qdurhu li, Wa in kunta ta’lamu anna ha-dha-l-amra sharrun li fi dini wa ma’ashi wa ‘aqibati `Amri (or said, fi ajili `Amri wa ajilihi) fasrifhu ‘anni was-rifni ‘anhu wa aqdur li alkhaira haithu kana, thumma Raddani bihi," Then he should mention his matter (need).”
Sahih al-Bukhari 6382
And a third time — Bukhari 7390
The third printing stands in the Book of Tawheed (in-book: Book 97, Hadith 19). Its narrator is named with his fuller name, Jabir ibn ‘Abdullah as-Salami, and its printed translation is a different, plainer rendering — the dua given in English, with no romanised form. The naming of the need, which the first two printings add after the dua as the Prophet’s ﷺ instruction, stands inside this printing’s dua itself.
اللَّهُمَّ إِنِّي أَسْتَخِيرُكَ بِعِلْمِكَ، وَأَسْتَقْدِرُكَ بِقُدْرَتِكَ، وَأَسْأَلُكَ مِنْ فَضْلِكَ، فَإِنَّكَ تَقْدِرُ وَلاَ أَقْدِرُ، وَتَعْلَمُ وَلاَ أَعْلَمُ، وَأَنْتَ عَلاَّمُ الْغُيُوبِ، اللَّهُمَّ فَإِنْ كُنْتَ تَعْلَمُ هَذَا الأَمْرَ ـ ثُمَّ تُسَمِّيهِ بِعَيْنِهِ ـ خَيْرًا لِي فِي عَاجِلِ أَمْرِي وَآجِلِهِ ـ قَالَ أَوْ فِي دِينِي وَمَعَاشِي وَعَاقِبَةِ أَمْرِي ـ فَاقْدُرْهُ لِي، وَيَسِّرْهُ لِي، ثُمَّ بَارِكْ لِي فِيهِ، اللَّهُمَّ وَإِنْ كُنْتَ تَعْلَمُ أَنَّهُ شَرٌّ لِي فِي دِينِي وَمَعَاشِي وَعَاقِبَةِ أَمْرِي ـ أَوْ قَالَ فِي عَاجِلِ أَمْرِي وَآجِلِهِ ـ فَاصْرِفْنِي عَنْهُ، وَاقْدُرْ لِيَ الْخَيْرَ حَيْثُ كَانَ، ثُمَّ رَضِّنِي بِهِ
“Narrated Jabir bin `Abdullah As-Salami: Allah’s Messenger (ﷺ) used to teach his companions to perform the prayer of Istikhara for each and every matter just as he used to teach them the Suras from the Qur’an He used to say, "If anyone of you intends to do some thing, he should offer a two rak`at prayer other than the compulsory prayers, and after finishing it, he should say: O Allah! I consult You, for You have all knowledge, and appeal to You to support me with Your Power and ask for Your Bounty, for You are able to do things while I am not, and You know while I do not; and You are the Knower of the Unseen. O Allah If You know It this matter (name your matter) is good for me both at present and in the future, (or in my religion), in my this life and in the Hereafter, then fulfill it for me and make it easy for me, and then bestow Your Blessings on me in that matter. O Allah! If You know that this matter is not good for me in my religion, in my this life and in my coming Hereafter (or at present or in the future), then divert me from it and choose for me what is good wherever it may be, and make me be pleased with it." (See Hadith No. 391, Vol. 8)”
Sahih al-Bukhari 7390
Why the numbers differ — and what the printings change
A reader who searches for this dua meets three numbers, and sometimes a fourth. The fourth is simply wrong: istikhara is often cited online as “Bukhari 1162”, but 1162 is ‘Aisha’s narration about the Prophet ﷺ speaking with her after the Fajr sunnah rak‘ahs — it contains no istikhara and no dua. The other three are all correct, because they are all the same narration: Bukhari recorded Jabir’s teaching in three of his books, and different sites take their text from different printings. A hadith-answers page cites 6382; a method site leads with 7390; another lists all three numbers together. None of them is citing a different dua.
What the printings change is small, and it is left standing here rather than smoothed away. In 6382, the good branch is shorter: after “then ordain it for me” it moves straight to the bad branch. The clause “and make it easy for me, then bless me in it”, which stands in 1166 and in 7390, is not in 6382’s text, in its Arabic or in its translation. In 7390, the opening drops one word the other two carry: “Your great blessings” becomes simply “Your Bounty”: al-‘azim, “the Great”, is absent. In 7390, too, the bad branch asks only to be turned away from the matter; the other half of the pair in 1166 and 6382, that the matter be turned away from the person, is not there. And 7390 places the naming of the need inside the dua (“then you name it specifically”), where 1166 and 6382 close the dua first and add the naming as the Prophet’s ﷺ instruction after it. Three printings, one teaching, and the differences are the sources’ own — this page harmonises none of them.
What the narration does not contain
The narration’s frame, in all three printings, is short: a two-rak‘ah prayer other than the obligatory one, the dua, and the naming of the need. It is worth listing what none of the three texts adds to that frame. No surah is named for the two rak‘ahs — the pairing of al-Kafirun and al-Ikhlas that step-lists prescribe comes from later fiqh literature, not from Bukhari’s text. No time of day is fixed. The dua is given no repetition count, and no number of days is set. And there is no dream in it, no sign, and no waiting period: the popular expectation that istikhara’s answer must arrive in a dream stands in later practice, not in any printing of this narration. These additions are named here as what they are — things that travel with the dua without standing in its text. This page gives no ruling on any of them; rulings belong to the section below.
Decisions, methods and your own situation
How to pray istikhara, how often, for which decisions, and what to make of a decision already taken: these are method and ruling questions, and the texts above do not answer them. This page prints the dua and its sources; it teaches no practice. For the moments around a decision, two sibling pages print their texts whole: when a task itself has become difficult, Allahumma La Sahla — the Dua When Something Is Difficult; and for the words Musa spoke before the task in front of him, Rabbi Shrah Li Sadri — Musa’s Dua Before the Task. The decision comes before both — and its questions of method belong to a scholar.
ImanAtlas does not give fatwas. For your own situation, ask a qualified scholar you trust.
Beyond the frame the narration itself gives, this page adds nothing — no count, no course, no sign to wait for.
Frequently asked questions
What is the istikhara dua, in full, with its Arabic?
It is the dua at the head of this page, inside Jabir’s narration (Sahih al-Bukhari 1166): “O Allah! I ask guidance from Your knowledge, and power from Your might, and I ask for Your great blessings…” — printed whole above, in Arabic and in the printed translation, with the narration’s own frame around it. Bukhari prints the same teaching at two more places, 6382 and 7390, and both stand above beside the first.
Some sites cite istikhara as Bukhari 1162 — which number is right?
1166. Bukhari 1162 is a different narration in the same book: ‘Aisha’s, about the Prophet ﷺ speaking with her after the two rak‘ahs of the Fajr sunnah, or lying down if she was asleep. It contains no istikhara and no dua. The istikhara narration is 1166 — and Bukhari prints it again at 6382 and 7390.
Why do some pages cite Bukhari 6382 or 7390 for istikhara?
Because Bukhari himself printed the teaching three times, in three books of his collection: at 1166 in the Book of Tahajjud, at 6382 in the Book of Invocations and at 7390 in the Book of Tawheed. Different sites take their text from different printings — one hadith site’s istikhara page cites 6382, a method site leads with 7390, another lists all three. The three texts stand side by side above.
Must the answer to istikhara come in a dream?
The narration itself names no dream, no sign and no waiting period — read it above: its frame is a prayer and a dua, and then the matter is named. The expectation that an answer must arrive in a dream stands in later practice and in step-lists, not in any of Bukhari’s three printings. What a person should make of their own case is a scholar’s question; the section above says where those belong.
How many times should istikhara be repeated?
No number stands in the narration — not for the dua, and not in days. The only number in the text is the two rak‘ahs of the prayer itself, inside the narration’s own words. How often a person repeats istikhara, and over how many days, is a practice question the texts on this page do not answer; it belongs to a scholar, and the routing section above says so.
Which surahs are prayed in the two rak‘ahs of istikhara?
The narration names none — no surah is specified in any of the three printings. The pairing that circulates in step-lists, al-Kafirun in the first rak‘ah and al-Ikhlas in the second, comes from later fiqh literature, not from Bukhari’s text; it is named here as an addition, and this page gives no ruling on it. What to practise is a scholar’s question.

Sources
Every text and claim on this page comes from these pages, read on 29 November 2026. Hadith translations are sunnah.com’s printed translations, quoted as they stand there.
- The first printing — Sahih al-Bukhari 1166 — sunnah.com
- The second printing — Sahih al-Bukhari 6382 — sunnah.com
- The third printing — Sahih al-Bukhari 7390 — sunnah.com
- What 1162 actually is — Sahih al-Bukhari 1162 — sunnah.com
- No dua for exams in the Sunnah — IslamQA 69759
- The main page of this set — Duas for Exams, Success & Istikhara
- The dua when something is difficult — Allahumma La Sahla — the Dua When Something Is Difficult
- Musa’s dua before the task — Rabbi Shrah Li Sadri — Musa’s Dua Before the Task
- Hub — Duas & Azkar
Found an error? We correct mistakes within 24 hours, with a note on the page — write to us through the website.