The istikhara prayer may be made for a specific matter or be made for a general seeking of all that is best. Some scholars, including Imam Abd al-Wahhab al-Sha`rani and Ibn `Arafah before him saw this kind of istikhara prayer as being superior. Others, including Shaykh Ibn al-Arabi, recommended performing a general istikhara prayer for all that is good every day, ideally at the time of the Duha prayer (after sunrise).
Imam al-Nawawi mentioned that before the istikhara prayer, one should seek advice (istishara) from those whose knowledge, wisdom, and concern one is confident. Ibn Hajar al-Haytami and others mentioned that one of the benefits of this is to further distance oneself from the desires of one's own egotistic inclinations.
It is recommended to open the dua of istikhara [below], with praise of Allah and sending blessings on the Prophet (Allah bless him & give him peace), and to close it in this manner, too.
Like other duas, it is recommended that one face the qibla.