The Women - 4:62 "If some calamity befalls them as a result of what they have done, they come to you and swear by Allah, "We only intended to do good and to reconcile"."
People deserve evil as a result of their deeds.
The Heights/7:131 "When good came to them, they used to say: "We deserved it", and when evil touched them, they used to accuse Moses and his companions of bad luck. Indeed, their bad luck is decided by Allah. But most of them do not know."

The Stories/28:47 "So that when a calamity befalls them because of what their own hands have wrought, they may not be able to say: "Our Lord, if you had sent us a messenger, we would have followed your verses and been of the believers"..."

The Romans/30:36 When We bestow a mercy on the people, they rejoice in it. But when evil touches them as a recompense for what they used to do, they immediately fall into despair.
The Romans/30:41 Calamities spread on land and sea because of what the people have done with their hands. So He makes them taste some of what they used to do in order that they may turn back (from evil).

Sheva/34:50 "Say, "If I go astray, it is my own fault, but if I find the way, it is because my Lord has revealed it to me. He is All-Hearing, All-Knowing."

The Women/4:79 Every good that comes to you is from Allah, and every evil that comes to you is from yourself. We have sent you as a messenger to mankind, and Allah is sufficient as a witness.