Allah made all the jinn subservient to the Prophet Sulaimaan (Solomon), a gift from Allah, swt, that will never be granted to another after him.
The Noble Qur'an - Saad 38:35-39
35. He said: "My Lord! Forgive me, and bestow upon me a kingdom such as shall not belong to any other after me: Verily, You are the Bestower."
36. So, We subjected to him the wind, it blew gently to his order whithersoever he willed,
37. And also the Shay?tin (devils) from the jinns (including) every kind of builder and diver,
38. And also others bound in fetters.
39. [Saying of All?h to Sulaim?n (Solomon)]: "This is Our gift, so spend you or withhold, no account will be asked."
The Noble Qur'an - Saba' 34:12-14
12. And to Solomon (We subjected) the wind, its morning (stride from sunrise till midnoon) was a month's (journey), and its afternoon (stride from the midday decline of the sun to sunset) was a month's (journey i.e. in one day he could travel two months' journey). And We caused a fount of (molten) brass to flow for him, and there were jinns that worked in front of him, by the Leave of his Lord, and whosoever of them turned aside from Our Command, We shall cause him to taste of the torment of the blazing Fire.
13. They worked for him what he desired, (making) high rooms, images, basins as large as reservoirs, and (cooking) cauldrons fixed (in their places). "Work you, O family of D?wud (David), with thanks!" But few of My slaves are grateful.
14. Then when We decreed death for him [Sulaim?n (Solomon)], nothing informed them (jinns) of his death except a little worm of the earth, which kept (slowly) gnawing away at his stick, so when he fell down, the jinns saw clearly that if they had known the unseen, they would not have stayed in the humiliating torment.
The Noble Qur'an - An-Naml 27:17-19
17. And there were gathered before Sulaim?n (Solomon) his hosts of jinns and men, and birds, and they all were set in battle order (marching forwards).
18. Till, when they came to the valley of the ants, one of the ants said: "O ants! Enter your dwellings, lest Sulaim?n (Solomon) and his hosts crush you, while they perceive not."
19. So he [Sulaim?n (Solomon)] smiled, amused at her speech[] and said: "My Lord! Inspire and bestow upon me the power and ability that I may be grateful for Your Favours which You have bestowed on me and on my parents, and that I may do righteous good deeds that will please You, and admit me by Your Mercy among Your righteous slaves."

Allah made all the jinn subservient to the Prophet Sulaimaan (Solomon), a gift from Allah, swt, that will never be granted to another after him. The Noble Qur'an - Saad 38:35-39 35. He said: "My Lord! Forgive me, and bestow upon me a kingdom such as shall not belong to any other after me: Verily, You are the Bestower." 36. So, We subjected to him the wind, it blew gently to his order whithersoever he willed, 37. And also the Shay?tin (devils) from the jinns (including) every kind of builder and diver, 38. And also others bound in fetters. 39. [Saying of All?h to Sulaim?n (Solomon)]: "This is Our gift, so spend you or withhold, no account will be asked." The Noble Qur'an - Saba' 34:12-14 12. And to Solomon (We subjected) the wind, its morning (stride from sunrise till midnoon) was a month's (journey), and its afternoon (stride from the midday decline of the sun to sunset) was a month's (journey i.e. in one day he could travel two months' journey). And We caused a fount of (molten) brass to flow for him, and there were jinns that worked in front of him, by the Leave of his Lord, and whosoever of them turned aside from Our Command, We shall cause him to taste of the torment of the blazing Fire. 13. They worked for him what he desired, (making) high rooms, images, basins as large as reservoirs, and (cooking) cauldrons fixed (in their places). "Work you, O family of D?wud (David), with thanks!" But few of My slaves are grateful. 14. Then when We decreed death for him [Sulaim?n (Solomon)], nothing informed them (jinns) of his death except a little worm of the earth, which kept (slowly) gnawing away at his stick, so when he fell down, the jinns saw clearly that if they had known the unseen, they would not have stayed in the humiliating torment. The Noble Qur'an - An-Naml 27:17-19 17. And there were gathered before Sulaim?n (Solomon) his hosts of jinns and men, and birds, and they all were set in battle order (marching forwards). 18. Till, when they came to the valley of the ants, one of the ants said: "O ants! Enter your dwellings, lest Sulaim?n (Solomon) and his hosts crush you, while they perceive not." 19. So he [Sulaim?n (Solomon)] smiled, amused at her speech[] and said: "My Lord! Inspire and bestow upon me the power and ability that I may be grateful for Your Favours which You have bestowed on me and on my parents, and that I may do righteous good deeds that will please You, and admit me by Your Mercy among Your righteous slaves."