When bad things happen it is easy to say something like, "What did I do to deserve this?" Probably nothing in the sense of the question above. God isn't punishing us when bad things happen. Of course, if we play with fire we get burnt, that is true. But that is not the same as saying that God is the author when bad things happen. This is so important. 'The gods' did bad things, just read Greek mythology! God does not. God dies on a cross for us, we did the crucifying, God did the rising. On the cross God judges human sin by being a victim of sin and raising the innocent Jesus from the dead. The risen Jesus sends out his disciples to preach repentance and forgiveness of sins, not vengeance. It would be wildly inconsistent for the Father of the Lord Jesus to then bring disaster down on our heads.
People can also have a tendency to misinterpret history in a similar way. An earthquake is not God's punishment. We shouldn't impute to God the disaster that follows the earthquake. People seem to have been (and still are) infatuated with end-of-the-world scenarios. Whether divinely inspired or human-induced, people continue to guess the meaning of events and interpret them as coming from a malevolent or angry god (even secularised people have their own versions of this). In the past people have been obsessed with dating 'the end', and dates still figure prominently in all kinds of secular future dooms. Jesus tells us not to misinterpret the events of history. He knew people would say all kinds of things in his name, and make all kinds of claims. So he explicitly says, don't be fooled by false messiahs, and don't see God as the author of disasters. Disasters, whether human-inspired or not, will come, but don't make God out to be a monster. (See Mark 13:1-8)
The event to correctly interpret is Jesus, his birth, ministry, death, and resurrection. God's response to suffering, evil, and death is not to make more of it. God’s response is to overcome suffering, evil, and death by surrendering to its power. Jesus, born in a stable, crucified and raised, interprets our history. We are loved, and in Christ our future is secure, even if it doesn't feel that way at times.