Another way to say "People prefer to sleep in the dark" is "For sleeping, people prefer the dark."