Shivchei HaRan, Part I, 26
And he was very strict about those people who think that the main stature of the tzaddik and the spiritual perception he attains come from the side of the soul alone, because he has a very lofty soul. He said that this is not so; rather, the main thing depends on good deeds, efforts and service. And he said explicitly that every person in the world can merit the highest level. For the matter depends only on the person's choice alone, if he wishes to have mercy on himself and to consider very, very well what is truly good for him, etc. "And everything is according to the abundance of deeds" (Avot 3:15).
View original Hebrew
והקפיד מאד על אלו האנשים שסוברים שעיקר מעלת הצדיק והשגתו שזוכה הוא מצד הנשמה לבד מחמת שיש לו נשמה גבוה מאד. ואמר שלא כן הדבר רק העיקר תלוי במעשים טובים ויגיעות ועבודות. ואמר בפרוש שכל אדם שבעולם יכול לזכות למדרגה הגבוה ביותר. כי אין הדבר תלוי אלא בבחירת האדם לבד, אם ירצה לרחם על עצמו ולישב עצמו היטב היטב מה שטוב לפניו באמת וכו'. 'והכל לפי רב המעשה' (אבות ג טו).