put the cart before the horse

idiom

Definition of put the cart before the horse

: to do things in the wrong order People are putting the cart before the horse by making plans on how to spend the money before we are even certain that the money will be available.