This is a dua that one should recite during times of stress to relieve themselves from that stress. Part of this dua is from Surah al Imran, verse 173, and another part of it is from Surah al Anfal, verse 40.
Allah is the best of planners, so only place your trust in Allah.