Put the cart before the horse

return pic

To proceed opposite to the normal sequence of events rather than doing it correctly

origin pic

John Heywood’s A Dialogue conteinyng the nomber in effect of all the Prouerbes in the Englishe tongue, 1589: To tourne the cat in the pan, Or set the cart before the hors