رَبِّ أَوْزِعْنِي أَنْ أَشْكُرَ نِعْمَتَكَ الَّتِي أَنْعَمْتَ عَلَيَّ وَعَلَىٰ وَالِدَيَّ وَأَنْ أَعْمَلَ صَالِحًا تَرْضَاهُ وَأَدْخِلْنِي بِرَحْمَتِكَ فِي عِبَادِكَ الصَّالِحِينَ
Rabbi awzi’nii an ashkura ni’matakal-latii an’amta ‘alayya wa ‘alaa waalidayya wa an a’mala saalihan tardaahu wa adkhilnii birahmatika fi ‘ibaadikas-saalihin. (27:19)
My Lord, grant me that I should be grateful for Your favour that You have bestowed on me and on my parents, and that I do the good deeds that You are pleased with. And admit me through Your mercy among Your pious servants.
This was the du’aa of Sayyidnaa Sulayman (Solomon) (a.s.).
We need Allah’s help even in showing gratitude for His favours. Further, good deeds in themselves are not sufficient. We need good deeds that will be accepted by Allah. It is possible that our good deeds carry no weight in the sight of Allah because of some inherent defect or flaw that only He knows.
(Source: Khalid Baig’s commentary to du’aa #29 in the Accepted Whispers: Munajat-e-Maqbul)