Ibn ʿAṭā said:
“Let not obedience make you joyous because it comes from you; but rather, be joyous over it because it comes from God to you. ‘Say: In the grace of God and in His mercy, in that they should rejoice. It is better than that which they hoard.’”
In this wisdom we are again confronted with an adjustment of the subtleties of the heart. It is again an issue of focus.
For one to be joyous over the good deeds that they have done is a manifestation of their own selfishness and a lack of their understanding the true nature of God as the One to be worshiped and the source of all good. No, you did not achieve what you did solely because you are wonderful or simply because you worked hard or did what you needed to do. Before and above any of that it was the pure bounty of the Most Gracious. In this we should rejoice and upon Him we should maintain our focus. The awakened heart realizes the beauty in the subtle difference between the two. In one the focus is on the self and in the other the focus is on the Creator and Sustainer of the universe. In one joy is placed in that which succeeds and fails and in the other joy is placed in He who never fails, glorified and exalted is He.
The tip for this reminder is simple and yet oft-forgotten. Every-time we are able to do something good, let’s make a sincere effort to turn our attention to Him, to thank Him and praise Him. Let us try to say what we were taught:
“Al-hamdu lillâhil-ladhi bi’ni-matihi tatimmus sâlihât.” All praises are for Allah, by whose grace all good things are completed (Hakim)
And in our gratitude to Him, we will find the good deeds increase insha Allah.
In doing so we also realize the intent of the verse that Ibn ʿAṭā mentioned in the wisdom itself, “’Say: In the grace of God and in His mercy, in that they should rejoice. It is better than that which they hoard.’”
 Translation from jannah.org
 Quran, 10:58.