The following passage settled with me in an interesting way. Although the statements recorded are themselves quite eye opening, I am unfamiliar with such an idea at large.
In that sense was the author, רבינו זרחיה מיון, teaching a new novel concept and idea or is this well represented in other Jewish literature?
אבל אם ימצא האדם חן בעיני הבורא, כשירצה להימשך אחרי היצר ולעזור אותו, יזדמנו לו מונעים, או מעכבים, או דברים מטרידים, ולא יניחנו הבורא לעזור ליצר, והבורא יעשה כזה לאדם בעבור חסדי אבותיו, או בעבור אשר יכיר לבו כי הוא נאמן, או בעבור כי יכיר כי באחרונה יהיה חסיד גמור ויהיה מן הזוכים לראות פני הבורא ומן הקרובים אליו, וכשיכיר הבורא מה שעתיד להיות, ירצה שיהיה נקי בעת שישוב מדרכו הרעה ויהיה קדוש.
But if a man finds favor in the eyes of the Creator, and he nevertheless wishes to be drawn after the evil inclination and help it, then restraints, obstacles, and troublesome things will occur, and the Creator will not let him help the evil inclination. The Creator will act thus to a man because of the pious deeds of his fathers, or because he sees in his heart that he is faithful, or because he discerns that in the end, this man will become a completely pious person, and will be among those who merit seeing the face of the Creator, and will be among those who are near to Him. Since the Creator recognizes what the future of this man will be, he desires that he should be pure and holy at the time that he repents of this evil conduct.