The 17th century midrashic Sefer haYashar ("Book of Jasher") describes Methuselah with his grandson Noah attempting to persuade the people of the earth to return to godliness. All other very long-lived people died, and Methuselah was the only one of this class left. God planned to bring the flood after all the men who walked in the ways of the Lord had died (besides Noah and his family). Methuselah lived until the ark was built, but died before the flood, since God had promised he would not be killed with the unrighteous. The Sefer haYashar gives Methuselah's age at death as 960.