How should the Ummah respond to a calamity that strikes?

Q: What is the Islamic viewpoint on earthquakes? What should our attitude be towards the people who have suffered earthquakes? Should we blame the people or should we help them?

There are people who say that we should not help those who have suffered natural disasters because they have committed a sin, that is why they are facing this calamity. Is this a correct opinion?