The Prophet sallalahu alayhi wa salam used to supplicate saying:
اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْهَمِّ وَالْحَزَنِ، وَالْعَجْزِ وَالْكَسَلِ، وَالْجُبْنِ وَالْبُخْلِ، وَضَلَعِ الدَّيْنِ، وَغَلَبَةِ الرِّجَالِ
O Allah! I seek refuge with You from worry and grief, from incapacity and laziness, from cowardice and miserliness, from being heavily in debt and from being overpowered by (other) men.
[Saheeh Muslim from the Hadith of Anas]
Shaikh Ibn ul-‘Uthaymeen rahimahullah said:
“[Regarding having] grief for what has past and worry for the future, if a person is sad about the past and worried about the future, his life will become restricted. However, if he does not worry except about the present and prepares for the future in a way which he is ordered, that will make him tranquil. So the Messenger sallalahu alayhi wa salam used to seek refugee with Allah from worry and grief. [Meaning] worry for the future and grief from the past. Many people you find are worried about the future with a great worry. Worrying that is not called for, so their life becomes restricted and they become tired. If they acted, they would have found it easy. Many people also do not forget the past, so they find grief and become tired”.
[Sharh Riyaad us-Saliheen (6/33)]
Faisal Ibn Abdul Qaadir Ibn Hassan