Scared to poop

My 2 year old is potty trained, she has been for months. A few days ago she was pooping and started crying saying she was very scared and her butt hurt. She really into the word very right now. Since then she has refused to poop! Last night she was screaming and crying they her belly hurt and I kept taking her to the potty but she would not go. She would just scream that she was scared and her tummy and butt hurt. Today she won’t eat anything she just says her belly hurts.

Any ideas on how to help her not be scared or to get her to just go to the bathroom? I hate she’s uncomfortable and scared!