There are a few risks - both directly and indirectly associated with sleeping next to your smartphone. To be safe we recommend that you put it away from your bed while sleeping.