The description of Salat al-Istikhaara which translates to "Prayer of Seeking Counsel" was narrated by the well known disciple of the Islamic prophet Muhammad, Jabir ibn ‘Abd-Allah al-Salami, who said:[1] The Messenger of Allah used to teach his companions to seek counsel from Allah (Istikhaara) in all things, just as he used to teach them chapters from the Qur'an.
He said: 'If any one of you is concerned about a decision he has to make or wants to take an action then let him pray two units raka'ah of voluntary salah prayer and say: "O Allah, I seek Your counsel through Your knowledge and I seek Your assistance through Your might and I ask You from Your immense favour, for verily You alone decree our fate while I do not, and You know while I do not, and You alone possess all knowledge of the Unseen.
O Allah, if in Your knowledge, this matter (then it should be mentioned by name) is good for me both in this world and the hereafter, then ordain it for me, make it easy for me, and bless it for me.
But seeking counsel from Allah (Istikhaara) can be done in all kind of other permissible matters where a choice needs to be made such as buying something, taking a job, or choosing a spouse etc.
It is also essential is that the reader's heart is sincerely rendered humble to God in full reliance and trust: اللَّهُمَّ إِنِّي أَسْتَخِيرُكَ بِعِلْمِكَ وَأَسْتَقْدِرُكَ بِقُدْرَتِكَ، وَأَسْأَلُكَ مِنْ فَضْلِكَ الْعَظِيمِ، فَإِنَّكَ تَقْدِرُ وَلاَ أَقْدِرُ وَتَعْلَمُ وَلاَ أَعْلَمُ وَأَنْتَ عَلاَّمُ الْغُيُوبِ، اللَّهُمَّ إِنْ كُنْتَ تَعْلَمُ أَنَّ هَذَا الأَمْرَ خَيْرٌ لِي فِي دِينِي وَمَعَاشِي وَعَاقِبَةِ أَمْرِي فَاقْدُرْهُ لِي وَيَسِّرْهُ لِي ثُمَّ بَارِكْ لِي فِيهِ، وَإِنْ كُنْتَ تَعْلَمُ أَنَّ هَذَا الأَمْرَ شَرٌّ لِي فِي دِينِي وَمَعَاشِي وَعَاقِبَةِ أَمْرِي فَاصْرِفْهُ عَنِّي وَاصْرِفْنِي عَنْهُ، وَاقْدُرْ لِي الْخَيْرَ حَيْثُ كَانَ ثُمَّ أَرْضِنِي بِهِAllahumma innee astakheeruka bi ilmika wa-astaqdiruka biqudratika wa-as'aluka min fadhlika al-adheem.
Wa in-kunta ta'lamu anna haadhal amra sharrun liy fiy deeniy wa-ma'aashiy wa-'aaqibati amriy.
Wa aqdur lial khayra haythu kaana thumma a-rdhiniy bihee[4] Istishara or Counseling with worthy wise person is needed for fulfilling the istikhara.