Prophet Sulaiman (as) was specially blessed by Allah .  He possessed control of the winds and had the ability to understand the languages of the animals.  So, one can see that he had great power and status in this world.

When Prophet Sulaiman (as) reached the zenith of his knowledge and understanding he made a beautiful dua to Allah, and we should all make an effort to learn this prayer and recite it regularly;

‘My Lord inspire and bestow upon me the power and ability that I may be grateful for Your Favours which You have bestowed on me and on my parents, and that I may do righteous good deeds that will please You, and admit me by Your Mercy among Your righteous slaves.’  (27:19)

Sulaiman (as) recognized that everything he had and achieved was as a result of the blessings from Allah .  So he firstly thanks Allah  for the blessings that have been bestowed upon him and his parents; who would have assisted in guiding him.  Then he begs Allah  to enable him to continue engaging in good deeds in order that he may rise with the righteous.

Unfortunately we see some who believe that all their power and acquisitions are as a result of their own doing and they neglect showing gratitude to Allah .

Similarly when Prophet Joseph (as) was reunited with his family in Egypt and he saw the fulfilment of the dream he had as a young boy, he acknowledged that it is Allah  who bestows knowledge, power and wisdom; and reiterated his reliance on Him;

‘My Lord! You have indeed bestowed on me of the sovereignty, and taught me the interpretation of dreams; the (only) Creator of the heavens and the earth! You are my Wali (Protector, Helper, Supporter, Guardian) in this world and in the Hereafter, cause me to die as a Muslim (the one submitting to Your Will), and join me with the righteous.’  (12:101)

In stark contrast we see the life of Pharaoh.  When he reached the zenith of his power instead of demonstrating humility and submission he said "O Chiefs! no god do I know for you but myself”.

All these lessons are preserved for us to reference especially when we progress in this life.  Remember everything comes from Him; utilize it in a manner that will bring about success in this world and the next.  Eventually we will have to separate from everything we own and crave for; and when that moment comes make sure you leave with absolutely no regrets. 

May Allah  enable us to always act in a manner that would pleasing and loving to him; and may He cause us to be from among those who constantly display and demonstrate gratitude to Him. ameen