Listening to music while you slumber is perfectly safe as long as your headphones are snug enough not to fall out of your ears. Before turning in for the night, try putting on some soothing music or listening to a podcast to take your thoughts off of the stresses of the day.