Jami` at-Tirmidhi, Book 48, Hadith 50 (Tirmidhi 3503)

Ibn Abbas said:

“One night, when he (ﷺ) exited his Salat, I heard the Messenger of Allah saying: ‘O Allah, I ask You of Your mercy, that You guide by it my heart, and gather by it my affair, and bring together that which has been scattered of my affairs, and correct with it that which is hidden from me, and raise by it that which is apparent from me, and purify by it my actions, and inspire me by it with that which contains my guidance, and protect me by it from that which I seek protection, and protect me by it from every evil. O Allah give me faith and certainty after which there is no disbelief, and mercy, by which I may attain the high level of Your generosity in the world and the Hereafter. O Allah, I ask You for success fil-qaḍā'i, wa nuzulash-shuhadā'i wa `aishas-su`adā'i, wan-naṣra `alal-a`dā'. Allāhumma innī unzilu bika ḥājatī, wa in qaṣura ra'yī wa ḍa`ufa `amalī iftaqartu ilā raḥmatik, fa as'aluka yā qāḍiyal-umūr, wa yā shāfiyas-ṣudūr, kamā tujīru bainal-buḥūr, an tujīranī min `adhābis-sa`īr, wa min da`watith-thubūr, wa min fitnatil-qubūr. Allāhumma mā qaṣṣara `anhu ra'yī wa lam tablughhu niyyatī wa lam tablughhu mas'alatī min khairin wa`adtahu aḥadan min khalqika aw khairin anta mu`ṭīhi aḥadan min `ibādika fa innī arghabu ilaika fīhi, wa as'alukahu bi-raḥmatika rabbal-`ālamīn. Allāhumma dhal-ḥablish-shadīd, wal-amrir-rashīd, as'aluka al-amna yawm al-wa`īd, wal-jannata yawmal-khulūd ma`al-muqarrabīnash-shuhūd, ar-rukka`is-sujūd, al-mūfīna bil-`uhūd, anta rahīmun wadūd, wa innaka taf`alu ma turīd. Allāhummaj`alnā hādīna muhtadīna, ghaira ḍallīna wa la muḍillīna, silman...