Punishment by the Lord is true vision. That is, seeing what we have done through clear eyes!
When we act in harmful ways we do so with only partial vision. To see these actions and their consequences with wide and true vision is the punishment we receive for acting blindly!
If we learn the lessons to be gained from our blind actions and resolve to do better then no further karma is created. But without seeing clearly what we have done we cannot learn the lessons it holds.
When we have seen clearly and learnt our lesson then we can move on and we are effectively forgiven for our sins!