Many an infidel in the times of Allah's prophets and even the atheists believe that life in the Hereafter is just a farce and that when they die, that will be the end of their life forever. So whatever enjoyment they can draw out of their life, the must for such good days will end when their life ends. It is for them that Allah has warned at many a places in the Qur'an, and even i the earlier scriptures, that there is a life after this worldly life when every man who died will be resurrected and made to answer for his doings in their wordily life and will be certainly rewarded for their good and bad deed. And for those who denied Allah's commandments and His prophets will suffer a painful chastisement for their denying the truth.
Today we share the 4th verse of Surah 10. Yunus as a warning for those disbelieved in Allah's promise:
اِلَيۡهِ مَرۡجِعُكُمۡ جَمِيۡعًا ؕ وَعۡدَ اللّٰهِ حَقًّا ؕ اِنَّهٗ يَـبۡدَؤُا الۡخَـلۡقَ ثُمَّ يُعِيۡدُهٗ لِيَجۡزِىَ الَّذِيۡنَ اٰمَنُوۡا وَعَمِلُوا الصّٰلِحٰتِ بِالۡقِسۡطِؕ وَالَّذِيۡنَ كَفَرُوۡا لَهُمۡ شَرَابٌ مِّنۡ حَمِيۡمٍ وَّعَذَابٌ اَلِيۡمٌۢ بِمَا كَانُوۡا يَكۡفُرُوۡنَ
(10:4) To Him is your return. This is Allah's promise that will certainly come true. Surely it is He Who brings about the creation of all and He will repeat it so that He may justly reward those who believe and do righteous deeds; and that those who disbelieve may have a draught of boiling water and suffer a painful chastisement for their denying the truth.
(To Him is your return) This is the second basic principle of the teachings of every prophet; “You shall have to return to your Lord and render an account of all you did in this world.” The first principle has been stated in the preceding verse: Allah alone is your Lord: therefore worship only Him.
(This is Allah's promise that will certainly come true. Surely it is He Who brings about the creation of all and He will repeat it) This sentence contains both a statement and its proof. The statement is, “Allah will again bring to life all human beings,” and the proof is, “This is as easy for Allah as it was to create them the first time.” The one who acknowledges that Allah has originated all creation (and who can deny this except those atheists who accepted the absurd theory of “creation without a creator” merely to get a plea for discarding the religion of the Christian clergy?) cannot consider this as impossible or irrational.
The reason why Allah will again bring the whole mankind to life is to reward the believers and to punish the disbelievers. After showing that this is possible to raise the dead, it is stated that it is absolutely necessary to fulfill the demands of common sense and justice, for full justice cannot be done without this. Common sense and justice demand that those who believe and do righteous deeds should be given their full rewards, and those who disbelieve and reject the truth and do evil deeds, should be duly punished. As every sensible and just person knows that this demand of justice is not fulfilled in its entirety, and cannot be fulfilled, in this world. It is absolutely essential that the entire mankind should again be brought to life for this purpose.
The last part of the verse quoted above is similar to 11th verse of Surah 11. Hud:
(11:103) Surely in that is a sign for him who fears the chastisement of the Hereafter. That will be a Day when all men shall be mustered together; that will be a Day when whatever happens shall be witnessed by all.
As for the ungrateful people whose abode will be the hell fire, the 38th verse of Surah 7 Al A'raf also points in the same direction:
(7:38) Allah will say: 'Enter the fire of Hell and join the nations of jinn and men that have gone before You.' As a nation enters Hill, it will curse the one that went before it, and when all are gathered there, the last of them shall say of the first: 'Our Lord! These are the ones who led us astray. Let their torment be doubled in Hell-Fire.' He will answer: 'Each will have a doubled torment; although you do not know.'
Tafsir Ibn Kathir: The Return of Everything is to Allah - Allah tells us that the return of the creatures on the Day of Resurrection is to Him. He will not leave anyone of them without bringing everyone into being as He brought them in the beginning. Then Allah states that He is going to bring all the creatures into being.
(And He it is Who originates the creation, then He will repeat it (after it has perished); and this is easier for Him.) (30:27),
(that He may reward with justice those who believed and did deeds of righteousness.) meaning, the reward will be with justice and complete recompense.
(But those who disbelieved will have a drink of boiling fluids and painful torment because they used to disbelieve.) meaning, because of their disbelief they will be punished on the Day of Resurrection by different forms of torment, such as fierce hot winds, boiling water, and the shadow of black smoke.
(This is so! Then let them taste it; a boiling fluid and dirty wound discharges. And other (torments) of similar kind all together!) (38: 57-58)
(This is the Hell which the criminals denied. They will go between it (Hell) and the fierce boiling water!) (55:43-44)
Yusuf Ali Explains that Allah's creation is not a simple act, once done and finished with. It is continuous, and there are many stages, not the least important of which is the Hereafter, when the fruits of our life will be achieved (depending on the positivity or negativity of of our deeds in our earthly life)