It is not good for the body. It is best not to listen to music or other radios during sleep at night, especially not all night long. The eardrum in the ear is in working condition for a long time. If you don't get proper rest, it may cause hearing damage in the long term, and it may even lead to deafness in severe cases.
Nighttime sleep is the best time to relax the whole body. Falling asleep in a quiet environment is good for the human body. In addition, listening to music to sleep may put the brain in a sub-excited state and prevent it from being completely relaxed.