It was narrated that Ibn ‘Abbas said:
The Messenger of Allah (ﷺ) did not recite Qur'an to the jinn and he did not see them. The Messenger of Allah (ﷺ) set out with a group of his companions, heading towards the market of ‘Ukaz. The devils had been prevented from hearing the news of heaven, and shooting stars had been sent against them. The devils went back to their people, who said: What is the matter with you? They said: Something is preventing us from hearing the news of heaven, and shooting stars have been sent against us. They said: That can only be because something has happened; travel throughout the earth, east and west, and see what it is that is preventing you from hearing the news of heaven. So they went and traveled throughout the earth, east and west, to find out what was preventing them from hearing the news of heaven. The group that headed towards Tihamah came to the Messenger of Allah (ﷺ) when he was in Nakhlah, on his way to the market of ‘Ukaz, and he was leading his companions in Fajr prayer. When they heard the Qur'an, they listened to it, and said: This, by Allah, is what has prevented us from hearing the news of heaven. Then they went back to their people and said: O our people, "Verily! We have heard a wonderful Recitation (this Qur'an)! It guides to the Right Path, and we have believed therein" [al-Jinn 72:1]. Then Allah revealed to His Prophet (ﷺ): "Say (O Muhammad): It has been revealed to me that..." [al-Jinn 72:1]. And what was revealed to him was what the jinn said.