Help pain

So I had sex today and now I hurt. Like i know pain is normal but thus is at the opening and i was wondering why and how to stop the pain. Pleasse and thank you