It could most likely be an Anal fissure with a sentinel pile which is associated with pain or hemorrhoids is the other possibility.
Consume adequate water, high fibre diet, stool softners 20 ml after food everynight, local lignocaine 2%gel 15 minutes before passing stools inside the anal canal.
Next Steps
Consult a General Surgeon for confirming the diagnosis and severity of the condition
Health Tips
Avoid straining while passing stools.Avoid spicy food and limit consumption of non-vegetarian food.