The foundational statement of the principle is the Ramban (Bereishit 12:6), who teaches that every detail of the patriarchs' journeys and trials was recorded not as mere narrative but as a template for what would later befall their descendants, so that a navi facing a crisis could look to the ancestral precedent to understand what was coming.
The Ramban applies this directly to the Egyptian exile, explaining in the Ramban (Bereishit 12:10) that Avraham's descent to Egypt during famine, his wife's seizure, and his emergence laden with wealth all prefigured the later Egyptian servitude and exodus with great possessions, a correspondence also recorded by Bereshit Rabbah 40:6 and foretold explicitly to Avraham in the covenant between the parts in Bereishit 15:13-14. The parallel episode of Yitzchak during a later famine, going to Avimelech and re-digging his father's wells, is read the same way by the Ramban (Bereishit 26:20), who finds in the naming of the wells a hidden reference to the future Batei Mikdash, while the base narrative itself appears in Bereishit 26:1-33 and Bereishit 20:1-18.
Chazal locate this principle in concrete textual parallels: Sotah 34a reads the stones Yehoshua has the people take from the Jordan as a sign for the children that their ancestors crossed the river, and Bereshit Rabbah 48:7 has God tell Avraham directly, sitting at the entrance of his tent, 'you are a sign for your children,' establishing that even postures and gestures of the Avos set patterns for Israel's later conduct, such as sitting while the Shechinah stands during tefillah.
Several commentators extend the principle beyond mere historical parallel to causal shaping of the future: the Meshekh Chokhmah (Lekh Lekha 33) reads Yitzchak's blessing on Esav and the mention of Yishmael's teshuvah as signs that their descendants will in the end draw near to God, and the Haamek Davar (Bereishit 18:15) applies the principle to explain why Sarah's laughter at the angel's words caused trouble with Avimelech, tracing that pattern forward to her descendants. the Haamek Davar (Bereishit 12:10) further holds that the famine itself came for the sake of the tzaddik rather than as mere test, which Rashi (Bereishit 12:10) frames as a trial of Avraham's faith, and the Sforno (Bereishit 26:1) notes Yitzchak's deliberate show of deference to Avimelech before leaving the land.
Among Chassidic sources, Likkutei Sichos 5, Lech Lecha sharpens the point: the maxim does not mean the ancestors' experience is merely a predictive sign, but that the actions of the Avos themselves generate and empower what later happens to their children, so that Avraham's descent to Egypt actively prepared and spiritually strengthened his descendants' later history. Daas Torah (Rav Yerucham Levovitz) states this even more explicitly, holding that the Avos themselves worked, toiled, and completed all future trials in thought and vision, so that wherever they stood firm their descendants stand firm, and wherever they faltered — as with Yaakov's 'vayitka' — later generations fell short in the same way, including in times of religious persecution.
The theme carries into practical and communal application in other sources: Bereshit Rabbah 44:21 has God show Avraham the vision of the furnace and torch representing Gehinnom, exile under foreign kingdoms, the giving of the Torah, and the Beit HaMikdash, with Avraham choosing which fate his children would endure, and Tanna DeBei Eliyahu Rabbah 42 derives from the deeds of the Avos the obligation each Jew bears to strive that his own actions reach the level of Avraham, Yitzchak, and Yaakov.
Readings of later pages extend the principle's scope: the Rebbe Rashab (Toras Shalom, Sicha 14) explains that Avraham's attainment of attachment to the Infinite Light through contemplation of worldly matters is itself what bequeathed his descendants the capacity to reach that same level, and Valle, Inyanei Sukkos p. 2 reads Yaakov's conduct toward Esav as indicating that the process of future rectification would proceed gradually, step by step. Shiurei Daas 1 p. 205 and Shiurei Daas 1 p. 204 develop a related but distinct idea of ancestral merit, describing it as an ongoing inheritance that can be obscured by descendants' sins or restored by a righteous child, and noting that the enduring merit of the Avos continues to operate on their descendants even today.