TABARANI 11477:
from ʿAbdullāh b. ʿAbbās And ʿAbd Allāh b. ʿUmar —
[Machine] Narrated by Abdullah ibn Abbas and Abdullah ibn Umar, they said: The Messenger of Allah, ﷺ , taught us Al-Istikharah (the prayer for seeking guidance) just as he taught us a chapter of the Qur'an. (O Allah, I seek Your guidance by virtue of Your knowledge, and I seek ability by virtue of Your power, and I ask You of Your great bounty. You have power, I have none. And You know, I know not. You are the Knower of hidden things. O Allah, if in Your knowledge, this matter (mention your intention) is good for me both in this world and in the Hereafter (or: in my religion, my livelihood and my affairs), then ordain it for me, make it easy for me, and bless it for me. And if in Your knowledge, this matter is bad for me both in this world and in the Hereafter (or: in my religion, my livelihood and my affairs), then turn it away from me, and turn me away from it. And ordain for me the good wherever it may be, and make me pleased with it).
الطبراني ١١٤٧٧:
عن عبد الله بن عباس و عبد الاه بن عمر —
عَنْ عَبْدِ اللهِ بْنِ عَبَّاسٍ وَعَبْدِ اللهِ بْنِ عُمَرَ قَالَا كَانَ رَسُولُ اللهِ ﷺ يُعَلِّمُنَا الِاسْتِخَارَةَ كَمَا يُعَلِّمُنَا السُّورَةَ مِنَ الْقُرْآنِ «اللهُمَّ إِنِّي أَسْتَخْيِرُكَ بِعِلْمِكِ وَأَسْتَقْدِرُكَ بِقُدْرَتِكَ فَإِنَّكَ تَقْدِرُ وَلَا أَقْدِرُ وَتَعْلَمُ وَلَا أَعْلَمُ وَأَنْتَ عَلَّامُ الْغُيُوبِ اللهُمَّ مَا قَضَيْتَ عَلِيَّ مِنْ قَضَاءٍ فَاجْعَلْ عَاقِبَتَهُ إِلَى خَيْرٍ»
hadithunlocked.com