Sheva - 34:13 They used to build for Him whatever He willed: Altars, statues, deep pools and heavy cauldrons. O family of David, work as a sign of gratitude. Few of My servants are thankful.
The jinn used to work under him:
The Prophets/21:81 And We gave Solomon the command of the gale that blows towards the land which We have made fertile, and We know all things well.
The Prophets/21:82 And the devils who worked for him as divers and did other things besides that. We were watching over them.

The Arabic Letter Sad/38:34 Thus did We test Solomon, and We added material wealth to his kingdom, but he turned wholly (to God).
The Arabic Letter Sad/38:35 "He said, "My Lord, forgive me. Give me a rule that no one can attain after me. You are the Bestower."
The Arabic Letter Sad/38:36 So We gave him the wind at his command, which moved at his command, and he sent down rain wherever he wished.
The Arabic Letter Sad/38:37 And the devils as builders and divers.
The Arabic Letter Sad/38:38 And the reserves who were chained together.
The Arabic Letter Sad/38:39 This is our gift. Whether you give it or keep it, it will not run out.

Sheva/34:12 And We gave to Solomon the wind, a month´s journey in the morning and a month´s journey in the evening, and We made a spring of oil gush forth for him. By the permission of your Lord, some of the jinn also worked under him. And whoever of them deviated from Our command, We made him taste a severe punishment.
Sheva/34:13 They used to build for Him whatever He willed: Altars, statues, deep pools and heavy cauldrons. O family of David, work as a sign of gratitude. Few of My servants are thankful.
Sheva/34:14 When We decreed his death, it was shown to them that he was dead, but a creature of the earth that ate his staff. When he collapsed, the jinn realized the truth: Had they known the unseen, they would not have continued in that humiliating hard work.