Hi, Welcome to Healthcare Magic Forum,
May be it is Hemorrhiods (Piles). You need to get it examined by a Surgeon as you may need Hemorrhoidectomy. In the meantime, you can apply, Xylocaine
2% Jelly after every stool. Drink plenty of water and eat fiber rich foods like fresh fruits and vegetables.