The foundational charge to remember and transmit the past across generations is stated directly in the Torah itself: Devarim 32:7 commands 'remember the days of old, understand the years of generation after generation,' directing one to ask one's father and elders for this knowledge, and Tehillim 78:1-7 describes the obligation to relate to the next generation 'the praises of the Lord, and his strength, and his wonderful works' as heard from the fathers, warning explicitly against hiding this history from one's children.
Shoftim 2:10 shows the catastrophic consequence of failing in this transmission: an entire generation arose 'which knew not the Lord, nor yet the work which he had done for Yisra'el,' precisely because the chain of memory broke.
The chain of transmission of Torah through named individuals across generations is laid out as the opening structure of Pirkei Avot 1:1, tracing Torah from Moshe through Yehoshua, the elders, the prophets, and the Men of the Great Assembly, and Megillah 11:12 reads a pasuk in Vayikra as Hashem naming the specific leaders He raised up in each era—Daniel and his companions, Shimon HaTzaddik and the Hasmoneans, Mordechai and Esther, and the Sages of the house of Rabbi Yehuda HaNasi—as the mechanism by which Israel was never abandoned.
Sefer HaChinukh 298:3 explains that the very point of certain days of rest is so that people, freed from worldly labor, have leisure to tell over and transmit to their children and grandchildren the great miracles God performed, since if they were permitted work even light work, the honor of the day would be forgotten even by the great.
Several sugyot in the Gemara preserve biographical details about specific sages precisely because knowing their lives teaches something about greatness and piety: Yoma 35b:6-8 recounts Hillel's poverty and his sacrifice to hear Torah as the measure against which every poor person will be judged, Eruvin 13b:3-5 explains why Rabbi Meir's unmatched brilliance nonetheless did not become normative halacha, Berakhot 28a-29a records the conflict and reconciliation between Rabban Gamliel and Rabbi Yehoshua and the handling of Rabbi Elazar ben Azarya's leadership, and Pesachim 113b tells of Rav Chanina and Rav Oshaya's piety as shoemakers among prostitutes in Eretz Yisrael, a story brought precisely so it would be retold.
Gittin 56a-57b preserves the account of Rabbi Zecharya ben Avkulas's excessive humility and its role in the destruction of the Temple, with Rabbi Yochanan's explicit statement that this very trait 'destroyed our house and burned our sanctuary,' showing that knowing the failures of historical figures carries its own lesson.
Knowing the generation's leaders is treated as a matter with cosmic weight: Peri Tzadik, Parshat Shekalim 1:2 describes how in every generation there are souls of leaders who encompass the souls of the whole generation, likened to a spark of Moshe Rabbeinu himself recurring generation after generation, and Sanhedrin 102b:2-4 records a pointed exchange testing whether a sage's wisdom would have prevented him from historical idolatry.
Attachment to the sages and transmission of their wisdom is cast as a Torah obligation in its own right: Sefer HaChinukh 434:1 derives from 'and to Him shall you cleave' that one must attach oneself to the sages of Torah in order to learn from them its honored commandments and true ideas, Pirkei Avot 1:4 instructs making one's house a meeting place for the sages and sitting thirstily at their words, and Yoma 86a:12-13 states that one who serves Torah scholars so that people say 'fortunate is his father who taught him Torah' causes Heaven's name to be beloved.
Berakhot 58a:8-10 requires a brachah specifically upon seeing the sages of Israel, acknowledging God's having shared His wisdom with them, and records Rabbi Yochanan urging that one should always strive to run even toward kings in order to be able to distinguish, by comparison, the honor due Israel's own leaders.
Several Rishonim and Acharonim sources extend this theme: Ralbag on Mishlei 10:6-7 comments that 'the memory of the righteous is for a blessing' because good continually accrues to one's remembrance, while the name of the wicked rots, Pesikta Rabbati 12 teaches that one who passes graves and knows a tzaddik is buried there must recall his deeds, since God Himself recalls the righteous for good, Kuzari 2:62 and Kuzari 1:25 discuss the Sanhedrin's charge to preserve and transmit the full range of wisdom across generations, and Machaneh Chaim, Shaar HaMachaneh Orach Chaim 2 35 opens with an elegy recalling 'the holy ones who are in the land, my teachers, the geonim famous in the world,' naming the Chatam Sofer and others by name as figures whose memory moves the heart like a harp.