Tafsir of 58:6 Ma'arif al-Qur'an
يَوْمَ يَبْعَثُهُمُ ٱللَّهُ جَمِيعًا فَيُنَبِّئُهُم بِمَا عَمِلُوٓا۟ ۚ أَحْصَىٰهُ ٱللَّهُ وَنَسُوهُ ۚ وَٱللَّهُ عَلَىٰ كُلِّ شَىْءٍ شَهِيدٌ ﴿٦﴾
This commentary covers verses 58:6 to 58:7.
أَحْصَاهُ اللَّـهُ وَنَسُوهُ (...Allah has its full account, while they have forgotten transgressions, but because he treats them as trivial and insignificant, he is unable to remember and recall them. However, they are all recorded and kept safely with Allah, even though the humans have done the actions and forgotten them. Allah will call them to give an account of them on the Day of Resurrection and chastise them.
Source: Ma'arif al-Qur'an — Mufti Muhammad Shafi. Licence: Maktaba-e-Darul-Uloom; confirm