expression, noun
small mercy in misfortune; silver lining; blessing in disguise
Used when something good or fortunate occurs within an otherwise unfortunate situation. Often said to find a positive aspect in a bad event.
事故に遭ったが、怪我が軽かったのは不幸中の幸いだった。
I had an accident, but it was a small mercy that my injuries were minor.
I lost my wallet, but it was a blessing in disguise that there wasn't much money in it.