قِيلَ لَهَا ٱدْخُلِى ٱلصَّرْحَ ۖ فَلَمَّا رَأَتْهُ حَسِبَتْهُ لُجَّةً وَكَشَفَتْ عَن سَاقَيْهَا ۚ قَالَ إِنَّهُۥ صَرْحٌ مُّمَرَّدٌ مِّن قَوَارِيرَ ۗ قَالَتْ رَبِّ إِنِّى ظَلَمْتُ نَفْسِى وَأَسْلَمْتُ مَعَ سُلَيْمَـٰنَ لِلَّهِ رَبِّ ٱلْعَـٰلَمِينَ
Qeela lahad khulis sarha falammaa ra at hu hasibat hu lujjatanw wa khashafat 'an saaqaihaa; qaala innahoo sarhum mumarradum min qawaareer; qaalat Rabbi innee zalamtu nafsee wa aslamtu ma'a Sulaimaana lillaahi Rabbil 'aalameen
She was told, "Enter the palace." When she saw it, she took it for a pool of water and uncovered her shins. He said, "It is a palace paved smooth with glass." She said, "My Lord, I have wronged myself. I surrender, with Sulayman, to God, the Lord of all the worlds."
Her surrender is worded with care: she submits alongside Sulayman, using maʿa, which keeps her beside him rather than under him, and the confession itself is addressed to God alone. The glass floor had just shown her that her own eyes could report water where there was none, and she draws the conclusion from it herself, without being told what it meant.