Muslims believe that after the world ends every being from the beginning of our existence will be resurrected. Over this time each person will be judged regarding their actions during their lifetime. Good actions will be rewarded and bad actions punished, and the overall result will be in paradise or hell.
Muslims believe that Allah is the most Just in judging but is also the Most Merciful.
In the Qur’an it says:
On that Day will men proceed in companies sorted out, to be shown the Deeds that they (had done). Then shall anyone who has done an atom’s weight of good, see it! And anyone who has done an atom’s weight of evil, shall see it..” (Surah al Zalzala,Chapter 99 Verses 7-9)