It's a polite and friendly way to say goodnight to someone, similar to "Goodnight" or "Sleep well" in English.