Belly button area hurts when I pee and when I bend over?

This happens every now and then and I don’t know why. It lasts for a day or two and the I won’t get it again for weeks or months.