Ende gut, alles gut.
“All is well that ends well.”
A good outcome makes up for a difficult or troubled process.
— Traditional Switzerland Wisdom, Switzerland
Source: Traditional German-language proverb widely used in Switzerland, public-domain oral tradition