Dua to be thankful to God :
رَبِّ أَوْزِعْنِىٓ أَنْ أَشْكُرَ نِعْمَتَكَ ٱلَّتِىٓ أَنْعَمْتَ عَلَىَّ وَعَلَىٰ وَٰلِدَىَّ وَأَنْ أَعْمَلَ صَـٰلِحًۭا تَرْضَىٰهُ وَأَصْلِحْ لِى فِى ذُرِّيَّتِىٓ ۖ إِنِّى تُبْتُ إِلَيْكَ وَإِنِّى مِنَ ٱلْمُسْلِمِينَ
Rabbi awzi’ni an ashkura ni’mataka alati an’amta ‘alayaa wa ‘ala walidayya wa an a’mala salihan tardahu wa aslih li fi dhurriyyati, inni tubtu ilaika wa inni minal-muslimeen
My Lord, enable me to be grateful for Your favor which You have bestowed upon me and upon my parents and to work righteousness of which You will approve and make righteous for me my offspring. Indeed, I have repented to You, and indeed, I am of the Muslims.
Reference : Quran Ahqaf 46:15:
This dua is taken from Quran 46:15, example of a man is given who reaches maturity and this man is grateful to his parents and to Allah, he is strong and established but he does not forget where he came from, and this man asks Allah to make him grateful for favors on him and on his parents and repents and also ask good for his children.
Allah subhanahuwa taala says in next verse that “Those are the ones from whom We will accept the best of what they did and overlook their misdeeds, [their being] among the companions of Paradise. [That is] the promise of truth which they had been promised”
Almost exactly similar dua is made by sulayman alehis salam (quran 27:19) with exception of dua for children since he had no heir, when he realizes the power Allah has given him, that he can understand the language of animals … he did not get proud at that moment but he asked Allah that He makes him a grateful servant of God.