Typically said to a significant other in a passive aggressive way when angry, in a fight, or breaking up. When you tell the other person “best of luck to you”, you don’t actually wish them the best of luck, it’s quite the opposite.
Partner 1 :: I don’t think our relationship is going to work out.
Partner 2 :: Wow, just like that? Well, best of luck to you.