Sleeping on your back is the best position for those with hip pain. You can try putting a pillow between your knees or behind your back to further relieve pressure on your hips and keep them aligned.