If we don't end war, war will end us.
A blessing in disguise
It describes a good thing that seemed bad at first.
E.g., Illness confined her to the home, which was a blessing in disguise.