when gods wish to punish us, they answer our prayers

So if gods wish to punish me; i prayed that please let me know what should to continue to, and what should i ignore. let me learn about my fault to make me realize what should not do faulty same mistakes again and again. let me strong enough to let things i should not keep it go. Let me weak enough to un-trust myself for something that unfaithful.