Let's start our investigation one verse earlier in 27:38 Solomon addresses an assembly or some chiefs or commandants as the word al-mal' الملأ was also translated. And we have an idea of the constitution of this assembly: In Verse 27:17 we learn that this assembly was of human, jinn and/or birds.
Verse 27:39 shows that the first to answer was a jinn.
The Hadith - like the one below - that says Prophet Solaiman (عليه السلام) is the last prophet to enter Heaven (الجنة) or that he enters Heaven 40 years after other prophets aren't correct.
رواه الطبراني في معجميه الكبير والأوسط: حدثنا علي بن سعيد الرازي حدثنا إبراهيم بن هارون بن المغيرة الرازي حدثنا أبي حدثنا عمرو بن أبي قيس عن شعيب بن خالد عن الزهري عن ...
Prophet Solomon didn't take their help, they were made subservient to him by Allah. The Quran mentions that the devils were included:
Quran 21:81-82 And to Solomon [We subjected] the wind, blowing
forcefully, proceeding by his command toward the land which We had
blessed. And We are ever, of all things, Knowing. And of the devils
were those who ...
There are different interpretations about the person and the knowledge, as detailed in Medi1Saif's answer here.
The different interpretations about this knowledge is:
The knowledge was of the اسم الله الأعظم (Greatest Name of Allah). This is a Name of Allah by invoking which any supplication made to Him is fulfilled by Him. See (arabic) at islamqa.info ...
Wa Alekum Asalam,
The person who had knowledge from the book was a human named Asif bin Barkhiya'. Sulaiman asked everyone to show that Asif is his successor.
References can be found in this wikipedia page: https://en.wikipedia.org/wiki/Asif_ibn_Barkhiya.
In the name of Allah, the most compassionate, the most merciful
In regards to the query that:
Why Solaiman bin Dawud(a.s.) is the last prophet who enters the
Briefly speaking, the response can be related to the properties and the equipment which Solaiman bin Dawud (a.s.) had. As a consequence, he will has a long audit because of them (in ...