A nightcap (hat worn to bed).
A linen or muslin hat, especially one of a type once commonly worn by elderly women and young children.