For seeking guidance in forming a decision or choosing the proper course

Jabir bin Abdullah (RA) said: The Prophet (ﷺ) used to teach us to seek Allah's Counsel in all matters, as he used to teach us a Surah from the Qur'an. He would say: When anyone of you has an important matter to decide, let him pray two Rak'ahs other than the obligatory prayer, and then say: Allāhumma innī astakhīruka bi `ilmik, wa astaqdiruka biqudratik, wa as'aluka min faḍlika ‘l-`Aẓīm, fa'innaka taqdiru wa lā aqdir, wa ta`lamu wa lā a`lam, wa anta `allāmu ‘l-ghuyūb, Allāhumma in kunta ta`lamu anna hādha ‘l-amra - [then mention the thing to be decided] Khayrun lī fī dīnī wa ma`āshī wa `āqibati amrī - [or say] `ājilihi wa ājilih - faqdurhu lī wa yassirhu lī thumma bārik lī fīh, wa in kunta ta`lamu anna hādha ‘l-amra sharrun lī fī dīnī wa ma`āshī wa `āqibati 'amrī - [or say] `ājilihi wa 'ājilihi - faṣrifhu `annī waṣrifnī `anh, waqdur liya ‘l-khayra ḥaythu kān, thumma arḍinī bih. "O Allah, I seek the counsel of Your Knowledge, and I seek the help of Your Omnipotence, and I beseech You for Your Magnificent Grace. Surely, You are Capable and I am not. You know and I know not, and You are the Knower of the unseen. O Allah, if You know that this matter [then mention the thing to be decided] is good for me in my religion and in my life and for my welfare in the life to come, - [or say: in this life and the afterlife] - then ordain it for me and make it easy for me, then bless me in it. And if You know that this matter is bad for me in my religion and in my life and for my welfare in the life to come, - [or say: in this life and the afterlife] - then distance it from me, and distance me from it, and ordain for me what is good wherever it may be, and help me to be content with it." Whoever seeks the counsel of the Creator will not regret it and whoever seeks the advice of the believers will feel confident about his decisions, for Allah has said in the Qur'an: "And consult them in the affair. Then when you have taken a decision, put your trust in Allah." Reference: Al-Bukhari 7/162. and Aal-'Imran 3:159.