Abu Zabyan (may Allah have mercy on him) said: We used to present our copies of the Qur'an to Alqamah bin Qays (may Allah have mercy on him), and he came to this verse: "No calamity strikes except by the permission of Allah, and whoever believes in Allah, He guides his heart" [Surah al-Taghabun: 11], meaning that whatever affliction befalls a person comes by Allah's command, and those who believe in Allah have their hearts set on the right course. We asked him about it, and he said: It refers to the man who is struck by a calamity and knows that it is from Allah, so he is content with it and submits.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 7133