One whose mind is confused should make a habit of saying the prayer of the prophet Chavakuk.
Sefer HaMidos, Knowledge of God, Part I §2