Term: cart before the horse
Example: "he put the cart before the horse when he bought the house before he got the loan
Definition: "putting the cart before the horse is doing something in the opposite or reverse order, as in "don't put the cart before the horse