minden jó, ha a vége jó

Etymology
Literally: "all is well if its ending is good"

Proverb

 * 1) all's well that ends well