فَلَمَّا قَضَیْنَا عَلَیْهِ الْمَوْتَ مَا دَلَّهُمْ عَلٰى مَوْتِهٖٓ اِلَّا دَٓابَّةُ الْاَرْضِ تَاْكُلُ مِنْسَاَتَهُۚ فَلَمَّا خَرَّ تَبَیَّنَتِ الْجِنُّ اَنْ لَوْ كَانُوا یَعْلَمُونَ الْغَیْبَ مَا لَبِثُوا فِی الْعَذَابِ الْمُهٖینِ
Falamma qadayna AAalayhi almawta ma dallahum AAala mawtihi illa dabbatu alardi takulu minsaatahu falamma kharra tabayyanati aljinnu an law kanoo yaAAlamoona alghayba ma labithoo fee alAAathabi almuheeni
Translations
And when We decreed for Solomon death, nothing indicated to the jinn his death except a creature of the earth eating his staff. But when he fell, it became clear to the jinn that if they had known the unseen, they would not have remained in humiliating punishment
Saheeh International
And when We decreed death for him, nothing showed his death to them save a creeping creature of the earth which gnawed away his staff. And when he fell the jinn saw clearly how, if they had known the Unseen, they would not have continued in despised toil
Marmaduke Pickthall