idiom
Hope for the best, prepare for the worst
Meaning
Always stay optimistic, but be ready for any outcome.
Example
She was nervous about the exam but decided to **hope for the best, prepare for the worst**.