Boyfriends past

So my boyfriend confessed to me that he had sex one time with a girl who caused me a lot of pain and that I absolutely hate but this happens years before we started dating.. how should I handle this? I’m very hurt..