Quran 63:10 from Surah Al-Munaafiqoon on Divine Marvels.
وَأَنفِقُواْ مِن مَّا رَزَقۡنَٰكُم مِّن قَبۡلِ أَن يَأۡتِيَ أَحَدَكُمُ ٱلۡمَوۡتُ فَيَقُولَ رَبِّ لَوۡلَآ أَخَّرۡتَنِيٓ إِلَىٰٓ أَجَلٖ قَرِيبٖ فَأَصَّدَّقَ وَأَكُن مِّنَ ٱلصَّٰلِحِينَ
English translation: And spend from what We have provided you from before [that] comes (to) one of you the death and he says My Lord Why not You delay me for a term near so I would give charity and be among the righteous
Transliteration: wa-anfiqu min ma razaqnakum min qabli an yatiya ahadakumu al-mawtu fayaqula rabbi lawla akhartani ila ajalin qaribin fa-assaddaqa wa-akun mina al-salihina