It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) that he said: I heard the Prophet (peace and blessings be upon him) say: "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, fa-innaka taqdiru wa la aqdiru, wa ta'lamu wa la a'lamu, wa anta 'allamu al-ghuyub. Allahumma in kana kadha wa kadha, min al-amr alladhi yuridu, li khayran fi dini, wa ma'ishati, wa 'aqibati amri, wa illa fa-srifhu 'anni, wa-srifni 'anhu, thumma qaddir li al-khayra aynama kana, la hawla wa la quwwata illa billah' (O Allah, I seek good from You by means of Your knowledge, I ask You for ability (to do good) through Your power, and I ask You of Your great bounty, for You have power over everything and I have no power, You know (everything) and I do not know, and You alone are the Knower of all that is unseen. O Allah, if this matter, which the servant intends, is better for me in my religion, my life 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 good for me wherever it may be. There is no power to avoid sin nor strength to do good except through Allah's help)."
Hadith Referenceمسند أبي يعلى الموصلي / من مسند أبي سعيد الخدري / 1342
Hadith Gradingمحدثین:إسناده حسن
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده حسن . » «قال سعيد بن محمد السناري: صحيح: دون قوله: (لا حول ولا قوة إلا بالله)» «أخرجه صحيح البخاري برقم: 6019، وأخرجه سنن الترمذي برقم: 480، وأخرجه سنن النسائي برقم: 3253، وأخرجه سنن أبي داود برقم: 1538، وأخرجه سنن ابن ماجه برقم: 1383، وأخرجه مسند أحمد برقم: 14297، وأخرجه فتح الباري برقم: 6019، وأخرجه رياض الصالحين برقم: 755، وأخرجه شرح السنة برقم: 1016، وأخرجه إتحاف الخيرة المهرة بزوائد المسانيد العشرة برقم: 1773، 6218/1، مسند ابویعلیٰ ترقیم الاثری: 1337»