Al-Anbiyaa · The Prophets

Al-Anbiyaa 21:94

فَمَن يَعْمَلْ مِنَ ٱلصَّٰلِحَٰتِ وَهُوَ مُؤْمِنٌۭ فَلَا كُفْرَانَ لِسَعْيِهِۦ وَإِنَّا لَهُۥ كَٰتِبُونَ ٩٤

So whoever does righteous deeds while he is a believer - no denial will there be for his effort, and indeed We, of it, are recorders.

Read in context