Well, when I saw the topic, I was gonna post what Mimi posted...

But if its been before the ride as you have just said, well, best wishes in finding an answer...

But do also check your bike fit, as that may aggravate whatever is causing the pain.