Philippians 4: 6 Do not worry about anything; but in all things make your needs known goodbye with prayers and supplications, with thanksgiving.
It is by giving thanks that you will detach yourself from your worries, not by complaining. So don't be grateful goodbye depending on the circumstances, because it is greater than your circumstances.