il ne faut pas vendre la peau de l'ours avant de l'avoir tué

Etymology
lit. 'one must not sell the bear's skin before having killed it'. From the fable  by.

Proverb

 * 1) don't count your chickens before they're hatched