In the long term, having a mattress that supports your body properly is key. For immediate relief when experiencing hip pain at night, find a sleeping position that takes the pressure off of your hips. You should also utilize pillows for support under your knees when sleeping on your back or between your knees when sleeping on your side. Properly placed pillows can take the pressure off the joints to help reduce irritation of the joints and help you get to sleep.