The meaning of the verses
In verse 155 Allah tells us that He will surely test His servants with something of fear, hunger, and loss of wealth, lives and fruits, so that the difference between the truthful and the liars, the patient and the impatient, becomes clear. Then glad tidings are given to those who are patient. Verse 156 explains that these patient ones are those who, when a calamity strikes them, say: We belong to Allah, and to Him we shall return.
These words affirm two truths. First, that we and all we have are owned by Allah; He does as He wills with what He owns, and no one has the right to object. Second, that we must return to Him, where the full reward of patience will be given. Verse 157 mentions three rewards for such people: “Salawat” from their Lord, meaning His favours and praise; mercy; and that it is they who are the rightly guided.
The Sunnah dua at the time of a calamity
In Sahih Muslim it is narrated from the Mother of the Believers Umm Salamah (may Allah be pleased with her) that the Messenger of Allah ﷺ said: when a servant is struck by a calamity and says “Inna lillahi wa inna ilayhi raji'un, Allahumma'jurni fi musibati wa akhlif li khairan minha”, meaning: O Allah, reward me in my affliction and give me something better than it in exchange, Allah gives him both the reward and something better in exchange. Umm Salamah said that when Abu Salamah (may Allah be pleased with him) died she said these words, and Allah gave her someone better than him, namely the Messenger of Allah ﷺ.
The virtue of Inna Lillahi wa Inna Ilayhi Raji'un and key lessons
About the rewards in verse 157, 'Umar (may Allah be pleased with him) said (Imam al-Bukhari also mentions this saying of his in a chapter heading): “Ni'mal 'idlan wa ni'mal 'ilawah”, meaning that favours and mercy are two excellent balanced loads, and guidance is the best extra gift on top of them. A narration in Sunan al-Tirmidhi mentions that a “Bait al-Hamd” (House of Praise) is built in Paradise for the one who praises Allah and says these words when his child dies, but the hadith scholars differ about its chain.
These words are not only for news of a death; when one suffers loss of wealth, illness, fear or any other hardship, saying them is the general command of the verse. Also remember that the real time for patience is the first moment of the shock, and saying these words with the tongue is complete only when the heart is also content with Allah's decree and the tongue stays free of complaint.
Common misconceptions
Some people relate that the strap of the Prophet's ﷺ sandal broke, so he said these words and said that this too is a calamity; this narration is very weak, although saying these words over a small hardship still falls under the general meaning of the verse. Likewise, there is no authentic proof for reciting these words a specific number of times as a wazifa (set daily recitation).