blessing in disguise (or a blessing in disguise, (phrase)
រឿងអាក្រក់ប្រែជាល្អ, ជួបជោគអាក្រក់ តែបែរជាល្អទៅវិញ
something that seems terrible, but actually produces positive result,
or an apparent misfortune that eventually has good results:
Example 1
When my father got arrested for drunk driving, it was a blessing in disguise, because he realized for the first time that he was an alcoholic.
Example 2:
Being omitted from the World Cup squad was a blessing in disguise.