Narrated Ibn Abbas:
When the Prophet got up at night to offer the Tahajjud prayer, he used to say: Allahumma lakal-hamd. Anta qaiyimus-samawati wal-ard wa man fihinna. Walakal-hamd, Laka mulkus-samawati wal-ard wa man fihinna. Walakal-hamd, anta nurus-samawati wal-ard. Walakalhamd, anta-l-haq wa wa’duka-l-haq, wa liqa’uka Haq, wa qualuka Haq, wal-jannatu Han wan-naru Haq wannabiyuna Haq. Wa Muhammadun, sallal-lahu’alaihi wasallam, Haq, was-sa’atu Haq. Allahumma aslamtu Laka wabika amantu, wa ‘Alaika tawakkaltu, wa ilaika anabtu wa bika khasamtu, wa ilaika hakamtu faghfir li ma qaddamtu wama akh-khartu wama as-rartu wama’a lantu, anta-l-muqaddim wa anta-l-mu akh-khir, la ilaha illa anta (or la ilaha ghairuka). (O Allah! All the praises are for you, You are the Holder of the Heavens and the Earth, And whatever is in them. All the praises are for You; You have the possession of the Heavens and the Earth And whatever is in them. All the praises are for You; You are the Light of the Heavens and the Earth And all the praises are for You; You are the King of the Heavens and the Earth; And all the praises are for You; You are the Truth and Your Promise is the truth, And to meet You is true, Your Word is the truth And Paradise is true And Hell is true And all the Prophets (Peace be upon them) are true; And Muhammad is true, And the Day of Resurrection is true. O Allah ! I surrender (my will) to You; I believe in You and depend on You. And repent to You, And with Your help I argue (with my opponents, the non-believers) And I take You as a judge (to judge between us). Please forgive me my previous And future sins; And whatever I concealed or revealed And You are the One who make (some people) forward And (some) backward. There is none to be worshipped but you . Sufyan said that ‘Abdul Karim Abu Umaiya added to the above, ‘Wala haula Wala quwata illa billah’ (There is neither might nor power except with Allah).
The Prophet (p.b.u.h) used to teach us the way of doing Istikhara (Istikhara means to ask Allah to guide one to the right sort of action concerning any job or a deed), in all matters as he taught us the Suras of the Quran. He said, "If anyone of you thinks of doing any job he should offer a two Rakat prayer other than the compulsory ones and say (after the prayer): — ‘Allahumma inni astakhiruka bi’ilmika, Wa astaqdiruka bi-qudratika, Wa as’alaka min fadlika al-‘azlm Fa-innaka taqdiru Wala aqdiru, Wa ta’lamu Wala a’lamu, Wa anta ‘allamu l-ghuyub. Allahumma, in kunta ta’lam anna hadha-l-amra Khairun li fi dini wa ma’ashi wa’aqibati amri (or ‘ajili amri wa’ajilihi) Faqdirhu wa yas-sirhu li thumma barik li Fihi, Wa in kunta ta’lamu anna hadha-lamra shar-run li fi dini wa ma’ashi wa’aqibati amri (or fi’ajili amri wa ajilihi) Fasrifhu anni was-rifni anhu. Waqdir li al-khaira haithu kana Thumma ardini bihi.’ (O Allah! I ask guidance from Your knowledge, And Power from Your Might and I ask for Your great blessings. You are capable and I am not. You know and I do not and You know the unseen. O Allah! If You know that this job is good for my religion and my subsistence and in my Hereafter–(or said: If it is better for my present and later needs)–Then You ordain it for me and make it easy for me to get, And then bless me in it, and if You know that this job is harmful to me In my religion and subsistence and in the Hereafter–(or said: If it is worse for my present and later needs)–Then keep it away from me and let me be away from it. And ordain for me whatever is good for me, And make me satisfied with it). The Prophet added that then the person should name (mention) his need.