in case of an emergency
まさかの時に備えておくのは賢明だ。
It’s wise to be prepared for the unexpected.
私たちはまさかの時に備えて貯金しなければならない。
We need to save money for a rainy day.