When God does a massive shaking, His first purpose is to draw those who know His word to repentance and away from sin. In this, Lev 26 clearly describes that process whereby God attempts to get His people's attention so they will turn and be healed. Daniel 9 provides us with a model prayer for the nation that God has chastened.