Dua on Seeing Someone Afflicted with Trial is chapter 83 of Hisn al-Muslim (Fortress of the Muslim), the collection of supplications from the Quran and Sunnah compiled by Sa'id ibn 'Ali ibn Wahf al-Qahtani. It has one reading, shown below with the Arabic, transliteration, English meaning and source reference exactly as published in the deen2u English edition.
The supplication (Hisn al-Muslim #194)
الْحَمْدُ لِلَّهِ الَّذِي عَافَانِي مِمَّا ابْتَلَاكَ بِهِ، وَفَضَّلَنِي عَلَى كَثِيرٍ مِمَّنْ خَلَقَ تَفْضِيلًا
Al-hamdu lillahil-ladhi 'afani mimmabtalaka bih, wafaddalani 'ala kathirin mimman khalaqa tafdila
All praise is for Allah, who has kept me safe from what He has tested you with, and has greatly favoured me above many of those He created. — deen2u
Reference: Jāmiʿ at-Tirmidhī 3431 (Ḥasan) at-Tirmidhī 5/493–494; see al-Albānī, Ṣaḥīḥ at-Tirmidhī 3/153 · Source: Fortress of the Muslim — deen2u English edition, deen2u.com/hisn-al-muslim
Source
Fortress of the Muslim, deen2u English edition (deen2u.com/hisn-al-muslim). Free to read, print and share unchanged. English translation, transliteration and arrangement © deen2u. Quran Arabic: Tanzil Project.