Baal HaSulam “The Freedom”: Therefore, he who strives to continually choose a better environment is worthy of praise and reward. But here, too, it is not because of his good thoughts and deeds, which come to him without his choice, but because of his effort to acquire a good environment, which brings him these good thoughts and deeds.
A person who chooses the best environment each time achieves a reward: his next, better, more advanced state.
Question: The appearance of good or bad thoughts in me is also not from me?
Answer: No. But what you do with them is from you.
You can “kind of” program yourself for the future. I stress, “kind of.” Indeed, in order to develop even greater freewill in you, your settings will be knocked down every time, giving you the opportunity to direct yourself to the goal with finer accuracy. Like a ship from the sea entering a riverbed full of branches, it is constantly guided; you need to move the same way.
Question: So, to be a good or bad person, to do good or bad, does not depend on the person?
Answer: No. Just by choosing your environment, as a result of this, you do good or bad deeds.
Moreover, you should always try to make a good deed against your previous state, and a bad one in relation to your future state, then the next state will be better. And do not despair if your next state is shown to you: “Ah, you see?! And you are not the one.” This is in order to push you forward.
From KabTV’s “Fundamentals of Kabbalah,” 2/4/19