Count one`s chickens before they`re hatched

To assume that something will be successful before it is certain.

Don`t count your chickens before they`re hatched. You are spending your money before you have a job.