Sleeping with your smartphone covered and charging underneath your pillow could be hazardous, creating a fire risk.
Plan an escape from your home in advance and talk about it with your family. If a fire occurs you may have to get out in the dark and difficult conditions. Escaping will be a lot easier if everyone knows where to go. Make sure your routes remain free of any obstructions and that there are no loose floor coverings that could trip you.