Jami` at-Tirmidhi 3324
Ibn Abbas said:
“The jinns used to ascent through the heavens, trying to listen about the Revealation. So when they heard a statement, they would add nine to it. The statement that they heard would be true, while what they added was false. So it was with the advent of the Messenger of Allah that they were prevented from their places. So they mentioned that to Iblis – and the stars were not shot at them before that. So Iblis said to them: ‘This is naught but an event that has occurred in the earth.’ So he sent out his armies, and they found the Messenger of Allah standing in Salat between two mountains” – I think he said “in Makkah” – “So they (returned) to meet with him (Iblis), and informed him. He said: ‘This is the event that has happened on the earth.’”
حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى، حَدَّثَنَا مُحَمَّدُ بْنُ يُوسُفَ، حَدَّثَنَا إِسْرَائِيلُ، حَدَّثَنَا أَبُو إِسْحَاقَ، عَنْ سَعِيدِ بْنِ جُبَيْرٍ، عَنِ ابْنِ عَبَّاسٍ، قَالَ كَانَ الْجِنُّ يَصْعَدُونَ إِلَى السَّمَاءِ يَسْتَمِعُونَ الْوَحْىَ فَإِذَا سَمِعُوا الْكَلِمَةَ زَادُوا فِيهَا تِسْعًا فَأَمَّا الْكَلِمَةُ فَتَكُونُ حَقًّا وَأَمَّا مَا زَادُوهُ فَيَكُونُ بَاطِلاً فَلَمَّا بُعِثَ رَسُولُ اللَّهِ صلى الله عليه وسلم مُنِعُوا مَقَاعِدَهُمْ فَذَكَرُوا ذَلِكَ لإِبْلِيسَ وَلَمْ تَكُنِ النُّجُومُ يُرْمَى بِهَا قَبْلَ ذَلِكَ فَقَالَ لَهُمْ إِبْلِيسُ مَا هَذَا إِلاَّ مِنْ أَمْرٍ قَدْ حَدَثَ فِي الأَرْضِ فَبَعَثَ جُنُودَهُ فَوَجَدُوا رَسُولَ اللَّهِ صلى الله عليه وسلم قَائِمًا يُصَلِّي بَيْنَ جَبَلَيْنِ أُرَاهُ قَالَ بِمَكَّةَ فَأَتَوْهُ فَأَخْبَرُوهُ فَقَالَ هَذَا الَّذِي حَدَثَ فِي الأَرْضِ ‏.‏ قَالَ هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ ‏.‏