He who gives no thought to far-flung problems soon finds suffering nearby (idiom, from Analects). / Smug concentration on the here and now will lead to future sorrow.
a thousand tries leads to one success (idiom, humble expr.); Even without any notable ability on my part, I may still get it right sometimes by good luck.