blessing in disguise

Intermediate (B1) neutral

Something bad that actually has a good outcome.

"Losing that job was a blessing in disguise—I found a better one."