Sleeping on your back can provide relief if you suffer from hip pain. Back sleeping distributes your body weight evenly, preventing undue strain on your hips and joints. However, if you're a side sleeper, place a pillow under your knees for added comfort and optimal spinal alignment.