The Prayer of Seeking Guidance (Istikhara)
Man Lā Yaḥḍuruh al-Faqīh|Volume 1|Book 1|Chapter 84
وَ رَوَى مُرَازِمٌ عَنْ أَبِي عَبْدِ اَللَّهِ عَلَيْهِ اَلسَّلاَمُ قَالَ: «إِذَا أَرَادَ أَحَدُكُمْ شَيْئاً فَلْيُصَلِّ رَكْعَتَيْنِ ثُمَّ لْيَحْمَدِ اَللَّهَ عَزَّ وَ جَلَّ وَ لْيُثْنِ عَلَيْهِ وَ لْيُصَلِّ عَلَى اَلنَّبِيِّ صَلَّى اَللَّهُ عَلَيْهِ وَ آلِهِ وَ يَقُولُ اَللَّهُمَّ إِنْ كَانَ هَذَا اَلْأَمْرُ خَيْراً لِي فِي دِينِي وَ دُنْيَايَ فَيَسِّرْهُ لِي وَ قَدِّرْهُ لِي وَ إِنْ كَانَ غَيْرَ ذَلِكَ فَاصْرِفْهُ عَنِّي » قَالَ مُرَازِمٌ فَسَأَلْتُ أَيُّ شَيْءٍ يُقْرَأُ فِيهِمَا فَقَالَ «اِقْرَأْ فِيهِمَا مَا شِئْتَ إِنْ شِئْتَ فَاقْرَأْ فِيهِمَا، بِ «قُلْ هُوَ اَللّٰهُ أَحَدٌ» وَ «قُلْ يٰا أَيُّهَا اَلْكٰافِرُونَ» وَ «قُلْ هُوَ اَللّٰهُ أَحَدٌ» تَعْدِلُ ثُلُثَ اَلْقُرْآنِ.
Murazim narrated from Imam Jafar ibn Muhammad Al-Sadiq عليه السلام who said: "If one of you intends to undertake something, let him pray two units of prayer (rak'ahs). Then, let him praise Allah سبحانه وتعالى, the Mighty and Majestic, and glorify Him, and send blessings upon the Prophet صلى الله عليه وعلى آله وسلم, and say: 'O’ Allah سبحانه وتعالى, if this matter is good for me in my religion and my worldly affairs, then make it easy for me and decree it for me. But if it is otherwise, then turn it away from me.'" Murazim asked: "What should be recited in these prayers?" He (Abu Abdullah) replied: "Recite whatever you wish in them, and if you like, recite in them: 'Qul Huwa Allahu Ahad' (Surah Al-Ikhlas) and ‘Qul ya-ayyuhal kaafirun’ (Surah al-Kafirun) Reciting 'Qul Huwa Allahu Ahad' (Surah Al-Ikhlas) is equivalent to one-third of the Quran."
- Ṣaḥīḥ al-Faqīh, p. 74