let me show you how things work in Islam, we are living mostly for 60 or 70 years which we consider a finite time, and Muslims agree that it's a finite time
what if Allah gives you an infinite number of lives, so you will get an infinite life and then it would be impossible to have the concept of other life, hell, paradise as you are already living infinitely
but indeed the god doesn't need to examine us for an infinite period, how? Allah knows well what we are doing, and he knows very well if the bad people died and they see the hell and ask for another chance and another life to do well in that new life and to do good deeds instead of the bad and to believe in him instead of disbelieving and to obey instead of disobeying, he knows well that they are in a big lie, they are trying to deceive him and if he returns them to the life again as they will do as they did before and they will say if we die again we will ask the god for another life and he's the most merciful and he will do as he did before but Allah isn't naive to act with them in that endless circle, his knowledge allowed him to judge us from our first chance, on the other hand he knows well that the good people if he gave him an infinite life, they will do well as they did at the first and so he rewarded them by an eternal paradise, let's post the verses of the quran which shows that, it's talking better than me
"If you could but see when they are made to stand before the Fire and will say, "Oh, would that we could be returned [to life on earth] and not deny the signs of our Lord and be among the believers, But what they concealed before has [now] appeared to them. And even if they were returned, they would return to that which they were forbidden; and indeed, they are liars, And they say, "There is none but our worldly life, and we will not be resurrected." Quran (6:27-29)
"And say, "My Lord, I seek refuge in You from the incitements of the devils, And I seek refuge in You, my Lord , lest they be present with me, [For such is the state of the disbelievers], until, when death comes to one of them, he says, "My Lord, send me back, That I might do righteousness in that which I left behind." No! It is only a word he is saying; and behind them is a barrier until the Day they are resurrected" (23:97-100)
think deeply about those verses