Etymology
Today it means: Used to wish a person a good night’s sleep. Full definition →
Attested in the United States in 1896.
Etymology from Wiktionary, CC BY-SA 4.0.