Allah tells us how Sulayman, peace be upon him, died and how Allah concealed his death from the Jinn who were subjugated to him to do hard labor. He remained leaning on his stick, which was his staff, as Ibn `Abbas may Allah be pleased with him, Mujahid, Al-Hasan, Qatadah and others said. He stayed like that for a long time, nearly a year. When a creature of the earth, which was a kind of worm, ate through the stick, it became weak and fell to the ground. Then it became apparent that he had died a long time before. It also became clear to Jinn and men alike that the Jinn do not know the Unseen as they (the Jinn) used to imagine and tried to deceive people. This is what Allah says:
(nothing informed them (Jinn) of his death except a little worm of the earth which kept (slowly) gnawing away at his stick. So when he fell down, the Jinn saw clearly that if they had known the Unseen, they would not have stayed in the humiliating torment.) meaning, it became clear to the people that they (the Jinn) were lying.