It is not a good idea to sleep with wet hair because if it remains damp over hours and rubs against the pillow then it doesn’t aerate and could get damaged. Although it is unlikely to become rotten, the humidity factor in our hair can lead to infection with pathogens on the scalp or in our body (e.g. coughs and headaches due to the cold, etc).