My asshole hurts

So i was getting it doggy style and he puts his thumb in my ass ( didn’t hurt, actually felt good ) later on I try to use the bathroom AND IT HURTS. Like it a burning feeling and I can’t poop 😭.

Advice? And would u tell me ur experience with having someone put they thumb in ur but or if u would try it ?