It hurting

Okay so I have been really sick lately and now that I'm feeling better me and my boyfriend decided to have sex this morning. I feel really bad because he was enjoying it and I couldn't because it hurt and I don't know why. He tells me he's not mad but I know he is. It's happened before.