Dua When Seeing Someone in Difficulty
اَلْحَمْدُ للهِ الَّذِىْ عَافَانِىْ مِمَّاابْتَلاَكَ بِهِ وَفَضَّلَنِىْ عَلىَ كَثِيْرٍ مِّمَّنْ خَلَقَ تَفْضِيْلاً
Al-hamdu lillãhil ladhi afani mimabtalaka bihi wa faddalani ala kathiririm mimman khalaqa tafdilâ.
All praises are for Allah who has granted me safety from the difficulty you are in and (praises for Him) who has favoured me over a great part of His creation.
Note: This duá should be read in a low tone so the person in difficulty does not hear.