Surah An-Naml

27:42

فَلَمَّا جَآءَتْ قِيلَ أَهَٰكَذَا عَرْشُكِ ۖ قَالَتْ كَأَنَّهُۥ هُوَ ۚ وَأُوتِينَا ٱلْعِلْمَ مِن قَبْلِهَا وَكُنَّا مُسْلِمِينَ

Maka ketika ia datang mengadap, Nabi Sulaiman bertanya kepadanya: Serupa inikah singahsanamu?" Ia menjawab: "Boleh jadi inilah dia; dan kami telah diberikan ilmu pengetahuan sebelum berlakunya (mukjizat) ini, dan kami pula adalah tetap berserah diri (menjunjung perintah Allah)".

Tafsir 27:42

So when the queen of Sheba came to Solomon, it was said to her to test her: “Is this how your throne is?” She answered according to the question: “It is as though it was that”. Allah has granted us knowledge before her and we were submitting to Allah’s order and obeying Him.