langtrap

don't count your chickens before they're hatched

phr.
One should not depend upon a favorable (and typically overoptimistic) outcome to one's plans until it is certain to occur.