It is reported that Imām Al-Shāfi’ī – Allāh have mercy on him – said:

If you fear becoming deluded and impressed by your deeds then remember whose pleasure you are seeking, and the joy (Paradise) in which you want to be, and what punishment you fear. Whoever thinks about these things will diminish his deeds.

Al-Dhahabī, Siyar A’lām Al-Nubalā` 10:42.