Every Muslim believe that life of this world is temporary and a trail for the eternal life i.e. hereafter. Allah emphasizes in Quran again and again on the fact that life of this world is merely a test, in order that He may judge who among us follow the guidance and who doesn’t. Allah says in Quran
“O my people, verily this present life is but a temporary enjoyment; but the life to come is the mansion of firm continuance.”
The Holy Quran, Chapter 40, Verse 39