まさかの時
1
in time of need;for a rainy day;in case of emergency
まさかの時の友こそ真の友。
A friend in need is a friend indeed.