for the best

US /fɔr ðə bɛst/
UK /fɔr ðə bɛst/
"for the best" picture
1.

used to say that something is a good thing, even if it seems bad at first

:
Losing that job was difficult, but it turned out to be for the best.
It's probably for the best that we didn't go on that trip.