Or (lest) he should say;"If only Allah had guided me, I should indeed have been among those who have Taqwa ". Or he should say when he sees the torment;"If only I had another chance, then I should indeed be among the doers of good."
means, he will wish that he could go back to this world, so that he could do righteous deeds.
Ali bin Abi Talhah reported that Ibn Abbas, may Allah be pleased with him, said,
"Allah tells us what His servants will say before they say it and what they will do before they do it. He says;
وَلَا يُنَبِّيُكَ مِثْلُ خَبِيرٍ
And none can inform you like Him Who is the All-Knower, (35;14)
أَن تَقُولَ نَفْسٌ يَا حَسْرَتَى علَى مَا فَرَّطتُ فِي جَنبِ اللَّهِ وَإِن كُنتُ لَمِنَ السَّاخِرِينَ
أَوْ تَقُولَ لَوْ أَنَّ اللَّهَ هَدَانِي لَكُنتُ مِنَ الْمُتَّقِينَ
أَوْ تَقُولَ حِينَ تَرَى الْعَذَابَ لَوْ أَنَّ لِي كَرَّةً فَأَكُونَ مِنَ الْمُحْسِنِينَ
Lest a person should say;"Alas, my grief that I was undutiful to Allah, and I was indeed among those who mocked." Or he should say;"If only Allah had guided me, I should indeed have been among those who have Taqwa." Or he should say when he sees the torment;"If only I had another chance, then I should indeed be among the doers of good."
Imam Ahmad recorded that Abu Hurayrah said, "The Messenger of Allah said;
كُلُّ أَهْلِ النَّارِ يَرَى مَقْعَدَهُ مِنَ الْجَنَّةِ فَيَقُولُ لَوْ أَنَّ اللهَ هَدَانِي فَتَكُونُ عَلَيْهِ حَسْرَةً قال وَكُلُّ أَهْلِ الْجَنَّةِ يَرَى مَقْعَدَهُ مِنَ النَّارِ فَيَقُولُ لَوْلَا أَنَّ اللهَ هَدَانِي قال فَيَكُونُ لَهُ شُكْرًا
Each of the people of Hell will be shown his place in Paradise and he will say, "If only Allah had guided me!" so it will be a source of regret for him.
And each of the people of Paradise will be shown his place in Hell and he will say, "If it were not for the fact that Allah guided me," so it will be a cause of thanks."
It was also narrated by An-Nasa'i. When the sinners wish that they could return to this world so that they could believe the Ayat of Allah and follow His Messengers, Allah will say;
بَلَى قَدْ جَاءتْكَ ايَاتِي فَكَذَّبْتَ بِهَا وَاسْتَكْبَرْتَ وَكُنتَ مِنَ الْكَافِرِينَ