(via Mayo Clinic)
Your usual sleep position — along with other factors, including your weight and your sex — can strain your back and contribute to development of back pain. Sleeping positions also affect existing back pain, either by letting you sleep comfortably or by making you wake up sore. Similarly, back pain is more likely to keep you awake when your sleeping position provides no relief.
Sleeping on your side
The most common sleeping position is on your side, with your legs and hips aligned and flexed. Because this position leaves your upper leg unsupported, the top knee and thigh tend to slide forward and rest on the mattress, rotating the lower spine. This slight rotation may contribute to back or hip pain. To prevent that problem, place a pillow between your knees and thighs.
Sleeping on your back
If you sleep on your back, place a pillow under your knees to help maintain the normal curve of your lower back. You might try a small, rolled towel under the small of your back for additional support. Support your neck with a pillow.
This position may be helpful if you have low back pain.
Sleeping on your abdomen
Sleeping on your abdomen can be hard on your back. If you can’t sleep any other way, reduce the strain on your back by placing a pillow under your pelvis and lower abdomen. Use a pillow under your head if it doesn’t place too much strain on your back. If it does cause strain, try sleeping without a pillow under your head.