The Messenger of Allah (ﷺ) said: “Whoever sees an afflicted person then 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, (Al-ḥamdulillāhi alladhī `āfānī mimmabtalāka bihī wa faḍḍalanī `alā kathīrin mimman khalaqa tafḍīla)’ he shall not be struck by that affliction.”
Reference: Jami` at-Tirmidhi 3432 In-book : Book 48, Hadith 63 English translation : Vol. 6, Book 45, Hadith 3432
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.