mądry Polak po szkodzie
Literally "[a] Pole [is (only)] wise after the damage [is done]". Known as early as in the XVI century, when the proverb was referenced in a poem by Jan Kochanowski.