The ones whom the angels take in death [while] wronging themselves,1 and [who] then offer submission, [saying], "We were not doing any evil." But, yes! Indeed, Allāh is Knowing of what you used to do.
Translation: Saheeh International (English)
1 i.e., having made punishment due to them for their numerous sins and crimes.
Those whose souls are taken by the angel of death and his aides while wronging themselves in their disbelief will submit with full surrender when death actually comes to them, and they will deny the disbelief and sins they used to do, thinking that such denial will be of benefit to them. It will be said to them: You have lied. You were disbelievers who used to commit sin. Allah knows everything that you used to do in the world. Nothing is hidden from Him and He will recompense you for that.