How to avoid hips pain after Exercise?

How to avoid hips pain after Exercise? Exercises can be good but at times it is always important to have a good rest after each one of them to make sure that you get maximum benefits. When you go for exercises and experience pains then it is almost useless.