Means something is so unlikely to happen that it’s almost impossible.
“I’ll believe that when pigs fly; it’s unlikely to happen.”