זה ספר תולדות אדם
The Midrash (cited by Yalkut Shemoni Bereishis 5:41) relates that Hashem passed all forthcoming generations before Adam HaRishon. When Adam saw that David Hamelech had been allotted only three hours of life, he asked, “Hashem, is there no remedy for this? (Is there not some way to lengthen David’s life?)” Hashem replied, “This is, indeed, what I had in mind (accept the three hours without question). Adam then asked, “How many years of life have I been allotted?” Hashem replied, “One thousand years.” Adam asked, “May I give a gift?” Hashem said, “Yes.” Adam then bequeathed seventy years of his…