If you have hip pain only at night, odds are the culprit is your sleep position or mattress. Side sleepers are particularly prone to hip pain due to pressure on the hip joint. The opposite hip – the one you're not lying on – might hurt, too, if it strains forward.