Or a more generic version: “Hope for the best, plan for the worst.”
I learned this the hard way getting forced out less than a month after proposing to my now wife. Hit me so hard, I had a weird visual hallucination: The sky looked black for months.
Wish I’d planned for the worse before then. Still creeps me out thinking of that black sky.