It says in Isaiah 41:10
Fear not for I am with you. Be not dismayed for I am your God. I will sustain you. I will help you. I will uphold you with my righteous right hand.
When moments like these arise what is said about scripture memorization is true. When you keep the word of God within you, remembering it. Whenever a situation arises a verse comes in your mind, reminding me of the sovereignty of God.
He is my foundation which cannot be moved. I entrust myself into his care.
To God be the Glory for he strengthens the weak.