Surah Al-Anbiya, ayah 82

21:82

وَمِنَ ٱلشَّيَٰطِينِ مَن يَغُوصُونَ لَهُۥ وَيَعۡمَلُونَ عَمَلٗا دُونَ ذَٰلِكَۖ وَكُنَّا لَهُمۡ حَٰفِظِينَ ٨٢

Waminash-shayātīni man yaghūsūna lahū waya'malūna 'amalan dūna dhālika wakunnā lahum hāfizīn

And of the devils [i.e., jinn] were those who dived for him and did work other than that. And We were of them a guardian.898

Footnotes

898 Preventing any disobedience or deviation by them from Solomon's instructions and protecting him from being harmed by them.