The Prophet Muhammad s.a.w.s. said:
“Take benefit of five before five: your youth before
your old age, your health before your sickness, your
wealth before your poverty, your free-time before your
preoccupation, and your life before your death.”
[al-Hakim, al-Baihaqi: Sahih]
This hadith is also collected by at-Tirmidhi and in the Mustadrak of al-Hakim.