Sayyiduna Ibn Abbas (may Allah be pleased with them both) narrates: The Messenger of Allah (peace and blessings be upon him) set out with a group of his Companions, heading for the market of Ukaz. At that time the devils had been blocked from (hearing) the news of the heaven, and flames were being sent against them. So the devils returned to their people, and they were asked: What is the matter with you? They said: A barrier has been placed between us and the news of the heaven, and flames are being sent against us. Their people said: This barrier between you and the news of the heaven has arisen only because of something new that has happened, so spread out through the east and the west of the earth and see what this thing is that has come between you and the news of the heaven. So they spread out through the east and the west of the earth, searching for what had come between them and the news of the heaven. Then those jinn who had gone towards Tihamah came back towards the Messenger of Allah (peace and blessings be upon him), while he (peace and blessings be upon him) and his (peace and blessings be upon him) Companions were at Nakhlah, heading for the market of Ukaz, and he (peace and blessings be upon him) was leading his Companions in the Fajr prayer. When they heard the Qur'an, they listened attentively and said: By Allah, this is what has come between you and the news of the heaven. Then, when they returned to their people, they said: O our people! We have heard a wondrous Qur'an that guides to the right way, so we have believed in it, and we will never associate anyone with our Lord. So Allah revealed this verse to His Prophet: "Say: It has been revealed to me" [Surah al-Jinn: 1], and what was revealed to him (peace and blessings be upon him) was only this saying of the jinn.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12396