Come out ahead

Come out ahead (English) — To be in a better position, placement figuratively or literally than someone might have previously been. Someone with a metal detector may find something that is of greater value than their cost for it. Good deeds done may give you a greater happiness than the act or word, so you came out ahead.