Question:
What is the ruling on performing a prostration of thanks upon seeing someone afflicted with a calamity?
Answer:
There is no Shariah evidence for this. Reciting a supplication upon seeing someone afflicted with a calamity is prescribed.
❀ ‘Umar bin al-Khattab (may Allah be pleased with him) narrates that the Messenger of Allah ﷺ said: Whoever sees someone afflicted with a calamity and recites this supplication will remain safe from that illness for as long as he lives:
الحمد لله الذى عافاني مما ابتلى هذا به وفضلني عليه وعلى كثير ممن خلق تفضيلا.
“All praise is for Allah, who has granted me well-being from that with which He has afflicted him, and who has favoured me over him and over many of those whom He has created.”