blessing in disguise

中級 (B1) neutral

Something bad that actually has a good outcome.

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