I learned this from a dear bestie B.
She told me to do this when I was deep in my depression.
And it’s biblical advice.
Psalm 59:16-17 says

Even in our darkest moments He is with us.
In this Psalm, David says You are my strength; I wait for you to rescue me, for you, Oh God, are my fortress.
David even in deep distress was worshipping God.
Praise God in songs through your storm.
Be encouraged. You are not alone. God is your refuge. Your shelter from pursuit, danger or trouble.
Have faith that God will honor your worship.