One should engage in constant istighfaar at the time of distress and anxiety
عن عبد الله بن عباس قال: قال رسول الله صلى الله عليه وسلم: من لزم الاستغفار جعل الله له من كل هم فرجا، ومن كل ضيق مخرجا، ورزقه من حيث لا يحتسب (سنن ابن ماجة، الرقم: 3819)
Hazrat Abdullah bin Abbaas (radhiyallahu ‘anhuma) reports that Rasulullah (sallallahu ‘alaihi wasallam) said, “The one who recites istighfaar constantly, Allah Ta‘ala will free him from every worry, make a way out for him from every difficulty, and will provide for him from sources he least expects.”