Al Anbiya, 94 Ayah
21:94
فَمَن يَعۡمَلۡ مِنَ ٱلصَّٰلِحَٰتِ وَهُوَ مُؤۡمِنٞ فَلَا كُفۡرَانَ لِسَعۡيِهِۦ وَإِنَّا لَهُۥ كَٰتِبُونَ ٩٤
Faman Ya`mal Mina Aş-Şāliĥāti Wa Huwa Mu'uminun Falā Kufrāna Lisa`yihi Wa 'Innā Lahu Kātibūna
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.