Duʿāʾ of gratefulness to Allah for saving you from the tribulations you witness others go through
that the Messenger of Allah ﷺ said: “Whoever sees a person ˹afflicted with trials˺ and says: ‘All praise is due to Allah Who saved me from that which He has afflicted you with, and blessed me greatly over many of those whom He has created,’ except that he shall be saved from that affliction for as long as he lives.”
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ: «مَنْ رَأَى صَاحِبَ بَلاَءٍ فَقَالَ (الْحَمْدُ لِلَّهِ الَّذِي عَافَانِي مِمَّا ابْتَلاَكَ بِهِ وَفَضَّلَنِي عَلَى كَثِيرٍ مِمَّنْ خَلَقَ تَفْضِيلاً) إِلاَّ عُوفِيَ مِنْ ذَلِكَ الْبَلاَءِ كَائِنًا مَا كَانَ مَا عَاشَ»