How is it that, when you suffered a hardship the twice of which you had inflicted upon them, you say, “Where did this come from?”
Say, “This is from your own selves. Allah is surely Powerful over everything.”
(Ali 'Imran: 165)
Surely We will test you with a bit of fear and hunger, and loss in wealth and lives and fruits, and give good tidings to the patient. Who, when a suffering visits them, say: “We certainly belong to Allah, and to Him we are bound to return.”
Those are the ones upon whom there are blessings from their Lord, and mercy as well; and those are the ones who are on the right path.
No calamity befalls (one), but with the will of Allah. And whoever believes in Allah, He guides his heart. Allah is All-Knowing about everything.