It should be clear, first of all, that life is a test from Allah and one should seek Allah’s help and guidance to pass this test. When facing difficulties, a Muslim is required to put his or her trust in Allah and to deal with the situation as much as he or she can within the framework of the teachings of Islam. There are situations that may need the counseling of friends, relatives or even a professional counseling. Yet, before taking a decision regarding a certain issue, one should perform two rak`ahs of Istikharah Prayer with the intention of seeking guidance from Allahand make the following du`aa’ of Istikharah.
Allahumma inni astakhiruka bi`ilmika, wa astaqdiruka bi-qudratika, wa as’aluka min fadlika al-azim, fa’innaka taqdiru wala aqdiru, wa ta`lamu wa la a`lamu, wa anta `allamu-l-ghuyub.
allahumma, in kunta ta`lamu anna hadhal-amra [here mention your case] khairun li fi dini wa ma`ashi wa `aqibati ‘amri (or ‘ajili amri wa`ajilihi) faqdurhu li wa yas-sirhu li thumma barik li fihi.
Wa in ta`lamu anna hadhal-amra sharrun li fi deeni wa ma`ashi wa `aqibati ‘amri (or `ajili amri wa ajilihi) fasrifhu `anni was-rifni `anhu, waqdur liya al-khaira haithu kana thumma ‘ardini bihi.”
(O Allah, I seek Your help in finding out the best course of action (in this matter) by invoking Your knowledge; I ask You to empower me, and I beseech Your favor. You alone have the absolute power, while I have no power. You alone know it all, while I do not. You are the One Who knows the hidden mysteries. O Allah, if You know this thing (I am embarking on) [here mention your case] is good for me in my religion, worldly life, and my ultimate destiny, then facilitate it for me, and then bless me in my action. If, on the other hand, You know this thing is detrimental for me in my religion, worldly life, and ultimate destiny, turn it away from me, and turn me away from it, and decree what is good for me, wherever it may be, and make me content with it.)
After having done so, he/she should follow the decision that he/she is strongly inclined to.
When you feel disturbed to control anything, you may repeat the following du`aas: Allahumma inni amatuka wa bintu `abdika wa bintu amatika, nasiyati bi yadika madin fiyya hukmuka `adlun fiyya qada’uka as’aluka bi kulli ismin huwa laka sammayta bihi nafsaka aw anzaltahu fi kitabika aw `allamtahu ahadan min khalqika aw ista’tharta bihi fi `ilm al-ghaybi `indaka an taj`ala al-Qur’ana rabi`a qalbi wa nura basari wa jila’a huzni wa dhahaba hammi (O Allah, I am Your servant, son/daughter of Your servant, my forelock is under Your firm grips, Your decree in my case is sure to be realized, and Your judgment is just. I ask of You by invoking every single name that You possess, with which You have called Yourself, or You have revealed in Your scripture or You have instructed any of Your creation or You have kept hidden with Yourself in the knowledge of the unseen realities to make the Qur’an the spring of my hearts, light of my eyes, and dispeller of my grief and remover of my anxieties).
La ilaha illa Allahu al-`azheem al-haleem; la ilaha illa Allahu, rabbu al-`arshi al-`azheem, la ilaha illa Allahu, rabbu as-samawati wa al-ardi wa rabbu al-`arshi al-kareem (There is no god but Allah, the Glorious, the Clement; there is no god but Allah, Lord of the mighty throne; there is no god but Allah, Lord of the heavens and the earth, and Lord of the noble throne).
Ya hayyu ya qayyumu bi rahmatika astaghithu (O the Ever-Living, the Eternal Source of all beings! I beseech Your mercy and assistance).
Subhan Allah wa bihamdihi subhan Allahi al-`azheem” (glory be to Allah, and praise be to Him; glory be to Allah the Glorious).