R. Yitzchok Adlerstein writes:
One of the meforshim of the Hagadah comments on מתחילה עובדי ע”ז היו אבותינו, תרח Was Terach one of the avos? Well, yes! From Terach, Avraham learned that there was a higher power, even if Terach got it completely wrong.
R. Adlerstein unfortunately does not name the commentator in question, but the idea presented is strikingly similar to a remarkably provocative one of Ralbag that has long fascinated me: G-d engineered the raising of Moses in Pharaoh’s household since that was the intellectual center of Egypt, and this eventually led to his acquisition of natural philosophy and [consequently] the achievement of prophecy, “for the doctrines of the Egyptian scholars, even though they were erroneous, inspired him to find the truth”:
התועלת השני הוא בדעות, והוא להודיע עוצם השגחת השם יתעלה במושגחים ממנו, שהוא סיבב שתמצאהו בת פרעה ותחמול עליו להצילו, והיה זה סיבה אל שגדל בבית פרעה והתחכם שם עם חכמי מצרים, והיה זה כלי לו אל שהשיג חכמת הנמצאות והיה נביא; וזה כי דעות חכמי מצרים, ואם היו משובשות, הנה העירוהו למצוא האמת.1
In the same vein, Ralbag explains Moses’s curiosity about the anomaly of the burning bush (which he apparently understands to have occurred within a prophetic vision)2 as illustrative of his customary scientific curiosity – “he would yearn to know the causes of things to the extent possible” – which was the key to his achievement of his wondrous spiritual level:
התועלת הששי הוא בדעות, והוא שראוי לאדם לחקור בסיבות הדברים הנמצאים לפי מה שאפשר לו, ולא יקצר מזה. כי בזה האופן יעמוד על חכמת השם יתעלה בשומו הנמצאות על האופן שהם עליו, לפי מה שאפשר לו מזה, ויהיה זה סיבה אל שישיג השם יתעלה לפי מה שאפשר; כי אנחנו נשיג מה שנשיג מהשם יתעלה – בהשגתנו מה שנשיג מנימוס אלו הנמצאות המסובבות ממנו יתעלה, וסדרם וישרם, כמו שביארנו במאמר הראשון מספר מלחמות השם ובחלק השלישי מהמאמר החמישי ממנו. הלא תראה כי משה רבינו ע”ה, תכף שראה זה הענין הזר – והוא היות הסנה בוער באש והסנה איננו אוכל – התעורר לסור ולראות, כדי שיעמוד על סיבת זה הענין. וזה ממה שיורה שכן היה מנהגו, רוצה לומר שכבר היה משתוקק לדעת סיבות הדברים לפי מה שאפשר, ולזה הגיע אל זאת המדרגה הנפלאה אשר הגיע אליה.3
I discuss these sources, among others, several years ago in my lectures for parashas Shemos, available, along with accompanying handout, at the Internet Archive.