The Family Of Imran - 3:30
A day will come when every person will find every good deed before him. He will wish that there is a long distance between him and every evil he does. Allah is warning you about Himself. Allah is compassionate to the servants.
What is the intention?
The Cow/2:167
"Those who follow will say: "If only we had had another chance, we would have shunned them as they now shun us". So Allah turns what they did into regret; they will not be able to come out of the Fire."
The Ornaments of Gold/43:36
And whoever disregards the message of the Most Merciful, We will cause a devil to take hold of him and he will be his companion.
The Ornaments of Gold/43:37
Indeed they lead them astray. Yet they think that they are on the right path.
The Ornaments of Gold/43:38
"When he finally comes to Us, he says: "If only there had been between me and you a distance as far as the distance between two eastern countries, what an evil companion you have been!"
The Sure Truth/69:25
"As for those who were given the Book on their left, they say: "If only my Book had not been given to me","
The Sure Truth/69:26
If only I had not learned what my reckoning is.
The Sure Truth/69:27
If only my death were eternal.
The News/78:40
"We have warned you of an imminent torment. On that Day a person will look at what he has done, and the disbeliever will say: "Would that he were dust!"