Source: Shumara al-Sunnah, Jhelum
Jinn do not have knowledge of the unseen (Ghayb).
The knowledge of the unseen is solely the prerogative of Allah ﷻ. Anyone who claims knowledge of the unseen or affirms the claim of another who does so is considered a disbeliever, as such a belief contradicts the clear statements of Allah ﷻ.
"Say: Indeed, the knowledge of the unseen is only with Allah."
[Surah Yunus: 20]
قُلْ لَا يَعْلَمُ مَنْ فِي السَّمَاوَاتِ وَالأَرْضِ الْغَيْبَ إِلَّا اللَّهُ
"Say: None in the heavens and the earth knows the unseen except Allah."
[Surah An-Naml: 65]
فَلَمَّا قَضَيْنَا عَلَيْهِ الْمَوْتَ...
When the death of Prophet Sulaymān عليه السلام occurred, the jinn were unaware of it and only discovered it when a creature ate his staff and his body fell:
"It then became clear to the jinn that if they had known the unseen, they would not have remained in humiliating torment."
[Surah Saba: 14]
✔ Only Allah ﷻ possesses complete and perfect knowledge of the unseen.
✔ Ascribing such knowledge to anyone besides Allah ﷻ amounts to disbelief.
❖ Answer:

The knowledge of the unseen is solely the prerogative of Allah ﷻ. Anyone who claims knowledge of the unseen or affirms the claim of another who does so is considered a disbeliever, as such a belief contradicts the clear statements of Allah ﷻ.
❖ Evidences from the Qur'an:
فَقُلْ إِنَّمَا الْغَيْبُ لِلَّهِ"Say: Indeed, the knowledge of the unseen is only with Allah."
[Surah Yunus: 20]
قُلْ لَا يَعْلَمُ مَنْ فِي السَّمَاوَاتِ وَالأَرْضِ الْغَيْبَ إِلَّا اللَّهُ
"Say: None in the heavens and the earth knows the unseen except Allah."
[Surah An-Naml: 65]
فَلَمَّا قَضَيْنَا عَلَيْهِ الْمَوْتَ...
When the death of Prophet Sulaymān عليه السلام occurred, the jinn were unaware of it and only discovered it when a creature ate his staff and his body fell:
"It then became clear to the jinn that if they had known the unseen, they would not have remained in humiliating torment."
[Surah Saba: 14]
❖ Conclusion:
✔ The belief that jinn know the unseen is false and contrary to Islamic teachings.✔ Only Allah ﷻ possesses complete and perfect knowledge of the unseen.
✔ Ascribing such knowledge to anyone besides Allah ﷻ amounts to disbelief.