اللَّهُمَّ إِنِّي أَسْتَخِيرُكَ بِعِلْمِكَ، وَأَسْتَقْدِرُكَ بِقُدْرَتِكَ، وَأَسْأَلُكَ مِنْ فَضْلِكَ الْعَظِيمِ، فَإِنَّكَ تَقْدِرُ وَلَا أَقْدِرُ، وَتَعْلَمُ وَلَا أَعْلَمُ، وَأَنْتَ عَلَّامُ الْغُيُوبِ، اللَّهُمَّ إِنْ كُنْتَ تَعْلَمُ أَنَّ هَذَا الْأَمْرَ خَيْرٌ لِي فِي دِينِي وَمَعَاشِي وَعَاقِبَةِ أَمْرِي — أَوْ قَالَ: عَاجِلِ أَمْرِي وَآجِلِهِ — فَاقْدُرْهُ لِي، وَإِنْ كُنْتَ تَعْلَمُ أَنَّ هَذَا الْأَمْرَ شَرٌّ لِي فِي دِينِي وَمَعَاشِي وَعَاقِبَةِ أَمْرِي — أَوْ قَالَ: فِي عَاجِلِ أَمْرِي وَآجِلِهِ — فَاصْرِفْهُ عَنِّي وَاصْرِفْنِي عَنْهُ، وَاقْدُرْ لِيَ الْخَيْرَ حَيْثُ كَانَ، ثُمَّ رَضِّنِي بِهِ
Allahumma inni astakhiruka bi-'ilmika wa astaqdiruka bi-qudratika, 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 ajilihi — faqdurhu li. Wa in kunta ta'lamu anna hadhal-amra sharrun li fi dini wa ma'ashi wa 'aqibati amri — aw qala: fi 'ajili amri wa ajilihi — fasrifhu 'anni wasrifni 'anh, waqdur liyal-khayra haythu kan, thumma raddini bih.
It means: O Allah, I seek Your guidance through Your knowledge and I seek strength through Your power, and I ask You of Your great bounty. For You are able and I am not, You know and I do not, and You are the Knower of the unseen. O Allah, if You know that this matter is good for me in my religion, my livelihood and the outcome of my affair — or he said: my sooner affair and my later one — then decree it for me. And if You know that this matter is bad for me in my religion, my livelihood and the outcome of my affair — or he said: in my sooner affair and my later one — then turn it away from me and turn me away from it, and decree good for me wherever it may be, then make me pleased with it. (The narration ends: "and he should name his need.")
🕒 When to say it: After praying two rak'ahs of Istikhara, naming your specific matter (Sahih al-Bukhari 6382 — Sahih)