это пошло мне на пользу
it did me good
"I was treated like dirt at Sandhurst. It did me good" (Prince Harry about his military service)
...
https://idioms.thefreedictionary.com/do+me+good
I did well out of this/ that
this/that was of benefit to me.
👍