قَالَ الَّذِي عِنْدَهُ عِلْمٌ مِنَ الْكِتَابِ أَنَا آتِيكَ بِهِ قَبْلَ أَنْ يَرْتَدَّ إِلَيْكَ طَرْفُكَ ۚ فَلَمَّا رَآهُ مُسْتَقِرًّا عِنْدَهُ قَالَ هَٰذَا مِنْ فَضْلِ رَبِّي لِيَبْلُوَنِي أَأَشْكُرُ أَمْ أَكْفُرُ ۖ وَمَنْ شَكَرَ فَإِنَّمَا يَشْكُرُ لِنَفْسِهِ ۖ وَمَنْ كَفَرَ فَإِنَّ رَبِّي غَنِيٌّ كَرِيمٌ {40}
[Pickthal 27:40] One with whom was knowledge of the Scripture said: I will bring it thee before thy gaze returneth unto thee. And when he saw it set in his presence, (Solomon) said: This is of the bounty of my Lord, that He may try me whether I give thanks or am ungrateful. Whosoever giveth thanks he only giveth thanks for (the good of) his own soul; and whosoever is ungrateful (is ungrateful only to his own soul's hurt). For lo! my Lord is Absolute in independence, Bountiful.
[Pooya/Ali Commentary]
A large, powerful jinn offered his services and assured Sulayman that he would do it before he would rise from his council. However strong and big a creature might be, it was not possible for him to go to a distant land and bring her and her throne in a few moments, unless the jinn had supernatural powers to do it. Although the jinn had boasted of his strength and supernatural power, yet when a man who had knowledge of the book said that he would bring them to him within the twinkling of an eye, Sulayman gave him permission. Soon the Queen, with her throne, was before him. See commentary of Rad: 43 to know about him who had the knowledge of the book. It is reported by Abu Ishaq Thalabi that Abdullah bin Salam asked the Holy Prophet to give the name of the man who had knowledge of the book and brought the queen of Sheba with her throne within the twinkling of an eye. The Holy Prophet said: "It was Ali."
It is stated in Minhaj al Sadiqin and Umdat al Bayan that then the Holy Prophet said to Ali:
"O Ali, you helped all the prophets of Allah incognito (concealed from view), and you help me in propria persona (in person) manifestly."
Ali ibn abi Talib is known as mazhar al aja-ib and mazhar al ghara-ib because, as willed by Allah, he used to appear in different forms to carry out divine plans under very special circumstances. These two epithets are exclusively reserved for Ali. Even today the true believers invoke Allah to send him for help. The famous dua, known as Nadi Ali, which the Holy Prophet recited, as commanded by Allah, at Khaybar refers to Ali as mazhar al aja-ib. Ali ibn abi Talib is also known as mushkil kusha, the remover of hardships. In every age, to many persons he comes personally to remove hardships. Through his name great spiritual achievements are attained. The Holy Prophet, and after him, Ali are acknowledged as the most superior possessors of the spiritual powers.