Allah tells us what the disbeliever will say on the Day of Resurrection, how they will blame themselves and admit that they wronged themselves in this world. When they see the horrors of the Day of Resurrection with their own eyes, they will be filled with regret at the time when regret will not avail them anything.
وَقَالُواْ يوَيْلَنَا هَـذَا يَوْمُ الدِّينِ
(They will say: "Woe to us! This is the Day of Recompense!") And the angels and the believers will say:
(This is the Day of Judgement which you used to deny.) This will be said to them as a rebuke and reproof. Allah will command the angels to separate the disbeliever from the believers in the place where they are standing. Allah says:
In verse 22, it was said: احْشُرُوا الَّذِينَ ظَلَمُوا وَأَزْوَاجَهُمْ (Muster all those who were unjust, and their fellows). Here, the text has used the word:(أَزْوَاجَ azwaj) for cohorts, fellow travelers, or people of the same persuasion - a word literally meaning 'pair'. Then, this word is very commonly used in the sense of spouses. That is why some commentators have said that it means wives of the Mushriks who were also Mushriks. But, in the sight of most commentators, the word: أَزْوَاجَ (azwaj) at this place means nothing but people of the same persuasion, and it also finds support in a saying of Sayyidna ` Umar. Imam al-Baihaqi, ` Abd-ur-Razzaq and others have reported this saying of Sayyidna ` Umar ؓ under their explanation of this verse. They have said that the word: أَزْوَاجَهُمْ (azwajuhum) in the text means 'other people like them.' Thus, (while mustering the unjust), huddled together there will be the people of the same interest, fornicators with other fornicators and drunkards with other drunkards. (Ruh-ul-Ma’ ani and Mazhari)
In addition to that, by saying: وَمَا كَانُوا يَعْبُدُونَ (and whatever they used to worship - 37:22), it was expressly laid out that, along with the Mushriks, all those false objects and entities like idols and shaitans they used to worship and equate with Allah as His associates in the life of the world will all be mustered together - so that, at that time, the helplessness of these false objects of worship could be demonstrated publicly.
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 18–25
The universe as we observe from the earth is so complicated and so extensive that the re-creation of human beings in the next world appears to be a work of comparatively smaller magnitude. A greater specimen of the creative power of the Creator is before us, then why should it be impossible for that Creator to engage in creation on a lesser scale? On analysing the human body, it appears that it is a combination of earthly components. Man is made up of substances found on earth, such as water, calcium, iron, sodium, etc. All these are found in our world in abundance, then by utilising the same elements from which He once created human beings, can He not re-create man?
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.