What causes you neck to get strained when you go to sleep?

Strained neck sleepi. You can strain or sprain your neck while sleeping by turning duribg sleep or while getting out of bed quickly some time and you have a painful neck which hurts to move.It is simply inflammation in muscle of the neck.