HELP!!!!

I’ve woken up to severe hip cramps last night in both hips!!!! Like a really bad spasm but it lasted so long. The pain went into my back and lower stomach it was so long!!!! Has anyone ever experience this? Is it normal. It has stopped I feel normal now, just wondering.