27:19
فَتَبَسَّمَ ضَاحِكًۭا مِّن قَوْلِهَا وَقَالَ رَبِّ أَوْزِعْنِىٓ أَنْ أَشْكُرَ نِعْمَتَكَ ٱلَّتِىٓ أَنْعَمْتَ عَلَىَّ وَعَلَىٰ وَٰلِدَىَّ وَأَنْ أَعْمَلَ صَٰلِحًۭا تَرْضَىٰهُ وَأَدْخِلْنِى بِرَحْمَتِكَ فِى عِبَادِكَ ٱلصَّٰلِحِينَ
So [Solomon] smiled, amused at her speech, and said, "My Lord, enable me to be grateful for Your favor which You have bestowed upon me and upon my parents and to do righteousness of which You approve. And admit me by Your mercy into [the ranks of] Your righteous servants."
Translation · Saheeh International
Tafsir
Ibn Kathīr (abridged)
Dawud and Sulayman (peace be upon them), the organization of Sulayman's Troops and His passage through the Valley of the Ants
Here Allah tells us about the great blessings and favors which He bestowed upon two of His servants and Prophets, Dawud (David) and his son Sulayman (Solomon), peace be upon them both, and how they enjoyed happiness in this world and the Hereafter, power and authority in this world, and the position of being Prophets and Messengers. Allah says:
وَلَقَدْ ءَاتَيْنَا دَاوُودَ وَسُلَيْمَـنَ عِلْماً وَقَالاَ الْحَمْدُ لِلَّهِ الَّذِى فَضَّلَنَا عَلَى كَثِيرٍ مِّنْ عِبَادِهِ الْمُؤْمِنِينَ
(And indeed We gave knowledge to Dawud and Sulayman, and they both said: "All the praises and thanks be to Allah, Who has preferred us above many of His believing servants!")
وَوَرِثَ سُلَيْمَـنُ دَاوُودَ
(And Sulayman inherited from Dawud.) means, in kingship and prophethood. What is meant here is not wealth, because if that were the case, Sulayman would not have been singled out from among the sons of Dawud, as Dawud had one hundred wives. Rather what is meant is the inheritance of kingship and prophethood, for the wealth of the Prophets cannot be inherited, as the Messenger of Allah ﷺ said: