Sura Saba

34:14

فَلَمَّا قَضَيْنَا عَلَيْهِ ٱلْمَوْتَ مَا دَلَّهُمْ عَلَىٰ مَوْتِهِۦٓ إِلَّا دَآبَّةُ ٱلْأَرْضِ تَأْكُلُ مِنسَأَتَهُۥ ۖ فَلَمَّا خَرَّ تَبَيَّنَتِ ٱلْجِنُّ أَن لَّوْ كَانُوا۟ يَعْلَمُونَ ٱلْغَيْبَ مَا لَبِثُوا۟ فِى ٱلْعَذَابِ ٱلْمُهِينِ

När Vi hade beslutat om [Salomos] död, antydde ingenting för dem att han var död, utom det att en mask gnagde sönder hans stav. Och [först] när han föll till marken, insåg de osynliga väsendena att om de hade vetat det som är dolt för [alla] skapade varelser hade de inte [behövt] fortsätta sitt förödmjukande straffarbete.

Tafsir 34:14

When we decreed for Solomon to die, the Jinn did not realise he had passed away until the woodworms had eroded away the staff he was leaning on. When he fell it became clear to the Jinn that they do not know the unseen/ghayb, as if they did, they would have not remained subdued, continuing to carry out the difficult tasks imposed upon them.