Maimonides repeatedly spoke of the direct connection between body and soul:
When the body is weak, the soul also struggles to remain balanced; and when the soul is troubled, the body weakens.
Therefore, he recommended adequate sleep, balanced nutrition, daily movement, and mental rest — because all of these directly influence the state of the mind.