Its likely to be a Fissure
Take some laxative for few days and it will be fine
Drink plenty of water
Take fruits and vegetables
30 ml at night for 5 days.]
Once the stool becomes soft, your pain will subside and fissure will heal.
However, if it persists, consult a surgeon