On the Day of Judgement Everyone will be recompensed according to what He did of Good or Evil
Allah informs of what will happen on the Day of Judgement of the great horrors. He says,
كَلاَّ
(Nay!) meaning, truly.
إِذَا دُكَّتِ الاٌّرْضُ دَكّاً دَكّاً
(When the earth is flatened, Dakkan Dakka.) meaning, the earth and the mountains will be flattened, leveled and made even, and the creatures will rise from their graves for their Lord.
وَجَآءَ رَبُّكَ
(And your Lord comes) meaning, for the session of Judgement between His creatures. This is after they requested the best of the Sons of Adam -- Muhammad ﷺ-- to intercede with Allah. This will occur only after they have requested the other great Messengers, one after another. Yet, all of them will say, "I cannot do that for you." This will continue until the beseeching of the men reaches Muhammad ﷺ, and he will say, "I will do it, I will do it." So he will go and seek to intercede with Allah as the session of Judgement will have come, and Allah will allow him to intercede for that (the Judgement). This will be the first of the intercessions, and it is the praiseworthy station that has already been discussed in Surat Subhan (Al-Isra'). So Allah will come for the session of Judgement as He wills, and the angels will also come, lined up in rows upon rows before Him. Then Allah says,
فَادْخُلِي فِي عِبَادِي (So, enter among My [ special ] servants...89:29). In other words, the contented soul will be addressed [ compassionately ], and first asked to enter the fold of righteous and sincere slaves, and then to enter Paradise. This indicates that entry into Paradise depends on their being, first and foremost, in the fold of the righteous believers. Then they will enter Paradise all together. This shows that joining the company of the righteous in this world is a sign that he will enter Paradise with them. Thus Prophet Sulaiman (علیہ السلام) prayed:
'...and admit me, by Your mercy, among Your righteous slaves...[ 27:19] '
Prophet Yusuf (علیہ السلام) prayed:
وَأَلْحِقْنِي بِالصَّالِحِينَ
'...and make me join the righteous. [ 12:101] '
The above supplications indicate that the company of the righteous is such a great blessing that even the Holy Prophets cannot do without, as a result they pray for it.
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 27–30
The other type of person is one who would bow down before God and thank Him when he received something, and when things were taken away from him, he would once again bow down before God and express his humility. It is the second type of person who has been called the contented soul or an-nafs al-mutmainnah. The position of the contented soul is attained by one who ponders over God’s signs in the universe; who derives spiritual nourishment, learns lessons and receives guidance from historical events; who proves that if there is a clash between the self and the Truth, he will ignore the self and accept the Truth; who, after once accepting the Truth, never renounces it, whatever the cost.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.