Question:
What t’shuvah may I do if I did a melachah b’shogeg, besides strengthening my learning of the halachos and being more careful. Can I give Tzedekah, preemptively, to avert, c’V, having H-shem cause me a financial loss?
Answer:
Yes you can give money to tzedakah, because part of the kapara of bringing a korban is the financial loss that is incurred, and by giving tzedakah and saying that this should be a kapara for the aveiro that was done, it will help.
Sources:
I think this idea is brought in the writings of the Chofetz Chaim