It is narrated from Sayyiduna Suhayb (may Allah be pleased with him) that he said: "When the Messenger of Allah (peace and blessings be upon him) had prayed, he would say some words in a low voice which we could not understand, nor would he (peace and blessings be upon him) tell us about them. Once he (peace and blessings be upon him) asked: 'Have you noticed me (doing this)?' We said: Yes. He (peace and blessings be upon him) said: 'I mentioned one of the (earlier) prophets, who was given large armies from his people, and he said (on seeing their great number): Who can match these? Or he said: Who can stand against these? Or words to that effect. So it was revealed to him: Choose for your people one of three punishments: either We set over them an (outside) enemy other than themselves, or hunger (famine), or death. So he consulted his people about it, and they said: You are the Prophet of Allah; we leave this matter to you, so make the better choice for us. So he stood up for prayer, and their way was that whenever they were in distress they turned to prayer. He prayed as much as Allah enabled him, and said: O my Lord! As for an outside enemy, then no (we do not accept it), nor hunger (can be borne), but death (decree that). So death was set upon them for three days, and seventy thousand of them died. So in this whisper of mine which you see, I say these words: 'Allahumma bika uqatilu wa bika usawilu, wa la hawla wa la quwwata illa billah' (O Allah, by Your help I fight and by Your aid I attack the enemy, and there is no power (to turn away from sin) and no strength (to do good) except through Allah).'"
Imam Abu Ya'la al-Mawsili recorded it.
Hadith Gradingمحدثین:سكت عنه البوصيري، لم أقف على إسناد أبي يعلى؛ والحديث عند أحمد من طريق حماد بن سلمة عن ثابت عن ابن أبي ليلى عن صهيب بإسناد صحيح
Hadith Takhrij«ليس في مسند أبي يعلى المطبوع ولا في المطالب؛ رجال طريق أحمد ثقات رجال مسلم» «أخرجه سنن الترمذي برقم: 3340، وأخرجه مسند أحمد برقم: 23409، وأخرجه مسند البزار برقم: 2089، 2090، وأخرجه المعجم الكبير للطبراني برقم: 7318، 7319، وأخرجه المعجم الأوسط للطبراني برقم: 3870، 3894»
It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him): I heard the Messenger of Allah (peace and blessings be upon him) saying: "When one of you intends to do something, let him say: 'Allahumma inni astakhiruka bi-'ilmika, wa astaqdiruka bi-qudratika, wa as'aluka min fadlika al-'azim, fa-innaka taqdiru wa la aqdiru, wa ta'lamu wa la a'lamu, wa anta 'allamu al-ghuyub. Allahumma in kana kadha wa kadha khayran li fi dini wa ma'ishati wa 'aqibati amri, wa illa fasrifhu 'anni wasrifni 'anhu, thumma qaddir liya al-khayra haythu kana, wa la hawla wa la quwwata illa billah' (O Allah, I seek good from You through Your knowledge, and I seek ability from You through Your power, and I ask You of Your immense bounty, for You have power and I have none, You know and I do not know, and You are the Knower of all that is unseen. O Allah, if this matter (here he mentions the thing he intends) is better for me in my religion, my livelihood and the outcome of my affairs (then decree it for me); otherwise turn it away from me and turn me away from it, then decree for me good wherever it may be; and the strength to avoid sin and the power to do good come only through the help of Allah)."
Imam Abu Ya'la, Ibn Hibban in his Sahih, Ahmad bin Hanbal, and al-Tabarani in Kitab al-Du'a recorded it. It also has a supporting narration (shahid) from the hadith of Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both), which Imam al-Bukhari and the authors of the four Sunan recorded; Imam Ahmad and al-Tabarani also recorded it from the hadith of Sayyiduna Abu Ayyub (may Allah be pleased with him), and Ibn Hibban and al-Tabarani from the hadith of Sayyiduna Abu Hurayrah (may Allah be pleased with him).
It is narrated from Sayyiduna Sa'd bin Abi Waqqas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Part of a person's good fortune is that he seeks good (istikharah) from his Lord."
Imam Abu Ya'la, Imam Ahmad bin Hanbal, Imam al-Bazzar and Imam Abu al-Shaykh bin Hayyan recorded this hadith, while Imam al-Hakim added in his narration: "And part of the misfortune of the son of Adam is that he abandons seeking good (istikharah) from Allah Almighty," and he declared it sahih in its chain. (Imam al-Busiri says:) That is his own statement (meaning this verdict is open to question). Imam al-Tirmidhi recorded it with these words: "Part of the good fortune of the son of Adam is seeking good (istikharah) from Allah Almighty frequently and being content with what Allah Almighty has decreed; and part of the misfortune of the son of Adam is abandoning seeking good (istikharah) from Allah Almighty and showing displeasure and resentment at Allah Almighty's decree," and Imam al-Tirmidhi declared this narration gharib (unusual). Technically, although Imam al-Tirmidhi recorded this text, his chain contains a narrator named Muhammad bin Abi Humayd, who is da'if (weak); therefore the chain given by Imam Abu Ya'la is better and preferable to it.
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده ضعيف؛ لضعف عبد الرحمن بن أبي بكر المليكي، وعمر بن علي المقدمي مدلس وقد عنعن
Hadith Takhrij«أبو يعلى (701): موسى بن محمد بن حيان عن عمر بن علي المقدمي عن عبد الرحمن بن أبي بكر بن عبيد الله عن إسماعيل بن محمد بن سعد عن أبيه عن جده، وضعفه حسين أسد. عبد الرحمن المليكي: ضعيف؛ عمر بن علي: ثقة يدلس شديدًا (التقريب)» «أخرجه سنن الترمذي برقم: 2151، وأخرجه مسند أحمد برقم: 1447، وأخرجه فتح الباري برقم: 6019، وأخرجه مسند البزار برقم: 1097، 1178، وأخرجه المستدرك على الصحيحين برقم: 1946، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 6825»