In Ayat 46 of Surat Kahfi of the Holy Qur'an (18:46), Allahu Subhanahu Wa Ta'ala says:--
"Wealth and children are the embellishment of worldly life,
and the good things that last (al-baqit-as-salihat) are greater
with your Lord and greater in expectation."
-Material things are short-lived and temporary, but the "good things that last" will remain and endure for ever. That is, their reward will continue into the hereafter, and the hereafter is far better and everlasting.
Now, what are "the good things that last?" The Prophet, Sallallahu alaihi Wasallam, told us what they are in the following Hadith:--
Abu Sa'id al-Khudri, may Allah be pleased with him, reported from the Messenger of Allah, Sallallahu alaihi Wasallam, that he said:--
"Make plenty of the good things that last (al-baqiyat salihat)"; It was said:
"And what are they, O Messenger of Allah", He said: "TAKBIR (Saying: Allahu
Akbar), TAHLIL (Saying: La-ilaha illallah), TAHMID (Saying: Alhamdulillah),
and saying: La-hawla wala quwata illa Billah." [Bukhari, Muslim].
Also, the Prophet Sallallahu alaihi Wasallam, said: "the most beloved words to Allah
are 4: SUBHANALLAH; ALHAMDU-LILLAH; LA-ILAHA ILLALLAH; ALLAHU AKBAR."