This is a common phrase used to bid someone goodnight when you are parting ways for the evening or when you are going to bed.