If you have restricted in your hips, most likely you will compensate in your golf swing by overusing your shoulders which can lead to injury in these areas.
Lie on the floor on your back with your knees bent.
Place one ankle on the opposite knee.
Lift both legs up in the air as you grab behind the knee of the leg on the floor.
Pull your leg towards your torso to feel a stretch in your hip.
You can press the opposite knee out away from you to feel more of a stretch.
Hold position for 8 to 10 counts and repeat on opposite leg.