don’t count your chickens (before they’re hatched) - definition and synonyms

phrase
  1. used for telling someone not to make plans that depend on the success of something until they are certain that it is successful
See also main entry: count