You tell this to a person when you want to wish someone a good nights sleep.
-Break a leg sleeping. -Thanks