Thanks for the question.
Hearing a clicking sound or feeling a popping when performing leg raises can be alarming. In many cases, it can be a sign of impending inflammation or popping hip syndrome. If you experience clicking in the hips every time you do leg raises or other movement at the hip joint, consult your health-care provider for a thorough diagnosis.
In view of details, I think you can give try to conservative treatment like pain killers, muscle relaxants (if needed), heat application and physiotherapy
If your hip clicking is because of bone friction, certain strategies can help stop the problem. Try doing leg raises with your knees bent or the legs positioned slightly apart. You may also limit your range of motion – keeping your legs a good distance from the ground when lowering them down.
If the sound itself worries you, skip the leg raises and ice the area. You might also want to reduce the amount of exercise you do that involves the hip joint -- such as cutting back on cycling and running.
And if pain continues even after that then you will have to get a x-ray of back done and even MRI
of back may also be needed to determine underlying cause.
Hope this answers your question.