Habits such as eating healthily or the opposite, exercising or not, etc have consequences on the body. Similarly investing into friendships can help in future times of struggling. As habits impact the future of the earthly life, so there are consequences on the soul that last into eternity.