IN-36
Invocation for anger
'A'oothu billaahi minash-Shaytaanir-rajeem .
I seek refuge in Allah from Satan the outcast from that which You provide for us.
Reference: Al-Bukhari 7/99, Muslim 4/20
What to say if you see someone afflicted by misfortune
Alhamdu lillaahil-lathee 'aafaanee mimmab-talaaka bihi wa fadhdhalanee 'alaa katheerin mimman khalaqa tafdheela.
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.
Reference: At-Tirmithi 5/493,4. See also Al-Albani, Sahih At-Tirmithi 3/153