Sulayman then asked which of the assembly would bring her throne to him before they came in submission (27:38). A powerful one among the jinn said that he would bring it before Sulayman rose from his place (27:39). Then "one who had knowledge from the Scripture" said that he would bring it before Sulayman's glance returned to him. When Sulayman saw it placed before him, he said: "This is from the favor of my Lord to test me whether I will be grateful or ungrateful" (27:40).
The Quran does not say who the man with knowledge was, so we do not give a name. Sulayman then ordered that her throne be disguised, to see whether she would be guided (27:41).
When she came she was asked, "Is your throne like this?" and she said, "It is as though it was it" (27:42). She was then told to enter the palace. She thought its floor was a body of water and uncovered her shins, and Sulayman told her that it was a palace made smooth with glass (27:44).
Then she said: قِيلَ لَهَا ٱدْخُلِى ٱلصَّرْحَ ۖ فَلَمَّا رَأَتْهُ حَسِبَتْهُ لُجَّةًۭ وَكَشَفَتْ عَن سَاقَيْهَا ۚ قَالَ إِنَّهُۥ صَرْحٌۭ مُّمَرَّدٌۭ مِّن قَوَارِيرَ ۗ قَالَتْ رَبِّ إِنِّى ظَلَمْتُ نَفْسِى وَأَسْلَمْتُ مَعَ سُلَيْمَٰنَ لِلَّهِ رَبِّ ٱلْعَٰلَمِينَ The meaning is: my Lord, I have wronged myself, and I submit with Sulayman to Allah, the Lord of the worlds.