You certainly can’t do it.
Yes you can work at restoring what you have now and helping the one you hurt;
but there’s nothing you can really do to change the past; or to take back what you did.
That’s the unfortunate truth. Trust me, I tried.
What about a pardon from your husband? He may or may not ever forgive you for what you did.
It will likely take time, and work, for him to grant you that pardon and not hold it against you forever.
But what if he never does?
Does that mean you’re then not worthy of forgiveness?
Did this one (terrible) thing define the whole of who you really are?
What about the good you’ve ever done?
Does adultery cancel all of that out?
No. I don’t believe it can or should do that.