Does it go down your leg? Could be sciatica.
I have been having hip pain, but it goes up my back. Doctor said bursitis.
I get that pain sometimes, it's worse during the night when I sleep. I try to do these stretches before I go to bed and it generally helps.