You don't gain anything by being punished for some wrong you have done. But God will bless you, if you have to suffer for doing something good.