Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:89:24

He will say, "Oh, I wish I had sent ahead ˹some good˺ for my life."  

He will say, as he remembers: ‘O (yā is for calling attention to something) would that I had sent ahead, good deeds and faith, for my life!’, ˹for˺ a good ˹life˺ in the Hereafter, or ˹it means˺ ‘during my life’ in the world.
القرآن:٨٩:٢٤

يَقُولُيَا لَيْتَنِي قَدَّمْتُ لِحَيَاتِي  

{يقول} مع تذكره {يا} للتنبيه {ليتني قدمت} الخير والإيمان {لحياتي} الطيبة في الآخرة أو وقت حياتي في الدنيا.