Upon seeing someone going through a trial or tribulation

الْحَمْدُ لِلّٰهِ الَّذِي عَافَانِي مِمَّا ابْتَلاَكَ بِهِ وَفَضَّلَنِي عَلَى كَثِيرٍ مِمَّنْ خَلَقَ تَفْضِيلاً

Transliteration

Alhamdu lillaahil-lathee ‘aafaanee mimmab-talaaka bihi wa fadhdhalanee ‘alaa katheerin mimman khalaqa tafdheela

Translation

Praise is to Allah Who has spared me what He has afflicted you with, and preferred me greatly above much of what He has created.

SourceIbn Majah: 3892

Related Duas