The Messenger of Allah (sal Allahu alaihi wa sallam) said: ‘Allah said: ‘Every deed of the son of Adam is for him except fasting; it is for Me and I shall reward for it…’
[Sahih Al-Bukhari and Muslim]
And when they hear Al‑Laghw (dirty, false, evil vain talk), they withdraw from it and say: ‘To us our deeds, and to you your deeds. Peace be to you. We seek not (the way of) the ignorant.’
al-Qasas 28:55
Good Deeds: Moderation

I heard Allah’s Apostle saying, “The good deeds of any person will not make him enter Paradise.” (i.e., None can enter Paradise through his good deeds.) They (the Prophet’s companions) said, ‘Not even you, O Allah’s Apostle?’ He said, “Not even myself, unless Allah bestows His favor and mercy on me.” So be moderate in your religious deeds and do the deeds that are within your ability: and none of you should wish for death, for if he is a good doer, he may increase his good deeds, and if he is an evil doer, he may repent to Allah.”

Bukhari  Vol. 7, Book 70, Hadith 577