Hurting right when sex starts

S
So I have a question, whenever I first start having sex, like the first couple times he puts it in, it hurts really bad, almost like my first time. After a few strokes, it feels better and then after a bit it doesn't hurt at all and it feels amazing. I was just wondering if this happened to anyone else and why it could be happening?