God would not have punished them if they were doing the right thing.
God wants His children to prosper but not in the wrong way and for the wrong reasons. He granted them prosperity because He is not against prosperity. Today, God is granting prosperity to His church but it seems it is accompanied by a leanness of soul, spiritual shallowness, disease, divorce, immorality and homosexuality. Let us be careful of what we force God to give us because we may not be happy with the attendant punishments that go with insisting on our own way