Saba • EN-TAZKIRUL-QURAN
﴿ فَلَمَّا قَضَيْنَا عَلَيْهِ ٱلْمَوْتَ مَا دَلَّهُمْ عَلَىٰ مَوْتِهِۦٓ إِلَّا دَآبَّةُ ٱلْأَرْضِ تَأْكُلُ مِنسَأَتَهُۥ ۖ فَلَمَّا خَرَّ تَبَيَّنَتِ ٱلْجِنُّ أَن لَّوْ كَانُوا۟ يَعْلَمُونَ ٱلْغَيْبَ مَا لَبِثُوا۟ فِى ٱلْعَذَابِ ٱلْمُهِينِ ﴾
“Yet [even Solomon had to die; but] when We decreed that he should die, nothing showed them that he was dead except an earthworm that gnawed away his staff. And when he fell to the ground, those invisible beings [subservient to him] saw clearly that, had they but understood the reality which was beyond the reach of their perception, they would not have continued [to toil] in the shameful suffering [of servitude]”
When it was time for Solomon to die, he was leaning on a stick and having some constructive work done by the ‘jinn’. The angel of death took away his life-spirit, but his lifeless body, with the support of the stick remained upright. The jinn continued with their work under the impression that he was nearby supervising the work. It so happened that some white ants infested the stick and after some time, when the white ants had made the stick hollow, his body fell on to the ground. It was then that the jinn came to know that Solomon had died. This incident suffices to remove the erroneous popular belief that the jinn have knowledge of the future.