But the nearer the dawn the darker the night, And by going wrong all things come right. Things have been mended that were worse, and the the worse, the nearer they are to mend.
The Poetical Works of Henry Wadsworth Longfellow: Tales of a wayside inn (ed. 1886)