Me and my boyfriend had sex

Me and my boyfriend had the best sex we have ever had during the whole relationship but he couldn't finish in me because I started to hurt down there is there any reason why this could be