Pain during sex !help!!

So right now me and my spouse just had sex .. he woked up in the mood so turned on so we started doing it .. were switching positions and i got on top and it hurted so i figured he must be really hard today and then he got on top and it still hurted and im moaning saying how much it hurted and at some point i felt like i wanted to cry but didnt ... so him seeing how much pain im in he stops and ask wats wrong ..i asked him if he was really hard and he said no that it felt like normal and im laying here moaning in pain still .. soo the pain felt like a constipation feeling in the butthole wich i was not constipated at all today just only wen we had sex it started so i think its strange .. has this happened to anyone before ???