2 year old withholding poop

Any ideas on how to get her to poop?? 😞 she was constipated for a day and when she had a bowel movement it hurt her and now she's scared to go potty. It's been two days and now she has to go potty but is being so stubborn