Was it my fault? Was it rape?

We were dating and had sex once or twice and I came over even though I wasn’t in the mood and we made out there was foreplay and I consented to sex originally but halfway through i wasn’t into it anymore and it was hurting so i told him to slow down and stop but he ignored me. I tried to push him off me but he just pinned my arms down and put himself on top of me harder. I kept struggling against him but his grip got tighter and i just laid there and took it until he finished. After he finished he told me it was the worst sex he’s ever had and he couldn’t enjoy himself but I explained how I felt and he said I came onto him so I wanted it and that I never explicitly said “no”. Weeks after i ignored the whole experience and kept seeing him until finally ending things due to his emotionally abusive behavior. I’m just so confused though, was it rape?