Dalil

Quran Az-Zumar 39:58

أَوۡ تَقُولَ حِينَ تَرَى ٱلۡعَذَابَ لَوۡ أَنَّ لِي كَرَّةٗ فَأَكُونَ مِنَ ٱلۡمُحۡسِنِينَ

Translation

Or [lest] it say when it sees the punishment, "If only I had another turn so I could be among the doers of good."