So because he objected to you going back to school to get your degree, and is not a good listener, you felt justified in having an affair? That's what your post sounds like.
Or do you regret it, and just don't know how to end it?
As others have said, if you're serious about saving your marriage, you need to end this immediately, and come clean with your husband.