´It was narrated from Fatimah bint Husain that her father said:` The Prophet (ﷺ) said: “Whoever was stricken with a calamity and when he remembers it he says ‘Inna lillahi, wa inna ilayhi raji’un (Truly, to Allah we belong and truly, to Him we shall return),’ even though it happened a long time ago, Allah will record for him a reward like that of the day it befell him.”
Brief Explanation
1؎: For example, if we say «إنا لله وإنا إليه راجعون» at the time of remembering the calamity of the passing of the Noble Prophet (sallallahu alayhi wa sallam), then we will receive the same reward that the Companions (radi Allahu anhum) received at the time of the Prophet’s (sallallahu alayhi wa sallam) passing. Some people have said that the hadith is specific to that calamity which has actually befallen the person himself. And Allah knows best.