Question:
Do the devils have knowledge of the unseen?
Answer:
It is narrated from Ibn Abbas (may Allah be pleased with them both):
انطلق رسول الله صلى الله عليه وسلم فى طائفة من اصحابه عامدين إلى سوق عكاظ، وقد حيل بين الشياطين وبين خبر السماء، وارسلت عليهم الشهب، فرجعت الشياطين، فقالوا: ما لكم؟ فقالوا: حيل بيننا وبين خبر السماء، وارسلت علينا الشهب، قال: ما حال بينكم وبين خبر السماء إلا أمر حدث، فاضربوا مشارق الارض ومغاربها، فانظروا ما هذا الامر الذى حدث، فانطلقوا، فضربوا مشارق الارض ومغاربها ينظرون ما هذا الامر الذى حال بينهم وبين خبر السماء، قال: فانطلق الذين توجهوا نحو تهامة إلى رسول الله صلى الله عليه وسلم بنخلة وهو عامد إلى سوق عكاظ، وهو يصلي باصحابه صلاة الفجر، فلما سمعوا القرآن تسمعوا له، فقالوا: هذا الذى حال بينكم وبين خبر السماء، فهنالك رجعوا إلى قومهم، فقالوا: يا قومنا إِنَّا سَمِعْنَا قُرْآنًا عَجَبًا ﴿١﴾ يَهْدِي إِلَى الرُّشْدِ فَآمَنَّا بِهِ ۖ وَلَن نُّشْرِكَ بِرَبِّنَا أَحَدًا ﴿٢﴾ ، فأنزل الله عز وجل على نبيه صلى الله عليه وسلم:قُلْ أُوحِيَ إِلَيَّ أَنَّهُ اسْتَمَعَ نَفَرٌ مِّنَ الْجِنِّ [ سورة الجن 1 ] وإنما اوحي إليه قول الجن.
The Messenger of Allah ﷺ set out with a group of his companions toward the market of Ukaz, at a time when a barrier had been placed between the devils and the news of the heavens, and flames of fire were hurled at the devils. The devils returned (to the earth), and the other devils asked: What has happened to you? (Why have you come back?) They said: A barrier has been placed between us and the news of the heavens, and flames of fire were hurled at us (because of which we have returned). Then the other devils (who were on the earth) said: A barrier has come between you and the news of the heavens only because of some great event. Spread out across the east and the west, and see what event has occurred. The narrator said: The devils who headed toward Tihamah came to the Messenger of Allah ﷺ at Nakhlah, while he was intending to go to the market of Ukaz, and he was leading his companions in the Fajr prayer. When the devils heard the Quran, they listened attentively and said: Indeed, this is what has come between you and the news of the heavens. Then they returned to their people and said: إِنَّا سَمِعْنَا قُرْآنًا عَجَبًا ﴿١﴾ يَهْدِي إِلَى الرُّشْدِ فَآمَنَّا بِهِ ۖ وَلَن نُّشْرِكَ بِرَبِّنَا أَحَدًا ﴿٢﴾
“Indeed, we have heard a wondrous Quran. It guides to the right path, so we believed in it, and (now) we will never associate anyone with our Lord.”
Allah the Almighty revealed to His Prophet this verse: قُلْ أُوحِيَ إِلَيَّ أَنَّهُ اسْتَمَعَ
The statement of the jinn was revealed to him ﷺ.
So it is evident from this blessed hadith that the devils and jinn do not have knowledge of the unseen. That is why they said that some great event had occurred and that they should find out about it. Had they had knowledge of the unseen, they would have known it already, and there would have been no reason to say this.