Upon seeing someone going through a trial or tribulation #1
Ibn Majah: 3892, At-Tirmidhi: 3431, 3432
الْحَمْـدُ للهِ الّذي عافاني مِمّا ابْتَـلاكَ بِهِ، وَفَضَّلَـني عَلى كَثيـرٍ مِمَّنْ خَلَـقَ تَفْضـيلا
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.