Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tabarani:11642Aḥmad b. ʿAmr al-Bazzār > Muḥammad b. Yaḥyá al-Quṭaʿī > Muḥammad b. Bakr > Ibn Jurayj > ʿAmr b. Dīnār > ʿIkrimah > Ibn ʿAbbās

[Machine] The moon was split during the time of the Prophet Muhammad ﷺ . They said that it was a magic act made by the moon. Then the verse was revealed, "The Hour has come near, and the moon has split".  

الطبراني:١١٦٤٢حَدَّثَنَا أَحْمَدُ بْنُ عَمْرٍو الْبَزَّارُ ثنا مُحَمَّدُ بْنُ يَحْيَى الْقُطَعِيُّ ثنا مُحَمَّدُ بْنُ بَكْرٍ ثنا ابْنُ جُرَيْجٍ عَنْ عَمْرِو بْنِ دِينَارٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ

كُسِفَ الْقَمَرُ عَلَى عَهْدِ رَسُولِ اللهِ ﷺ فَقَالُوا سُحِرَ الْقَمَرُ فَنَزَلَتْ {اقْتَرَبَتِ السَّاعَةُ وَانْشَقَّ} الْقَمَرُ إِلَى قَوْلِهِ {مُسْتَمِرٌّ}  


See similar narrations below:

Collected by Tirmidhī
tirmidhi:3286ʿAbd b. Ḥumayd > ʿAbd al-Razzāq > Maʿmar > Qatādah > Anas

"The people of Makkah asked the Prophet ﷺ for a sign, so the moon was cleft asunder in Makkah two times (meaning two parts), so the following was revealed: 'The Hour has drawn near, and the moon has been cleft asunder, up to his saying: 'Magic, Mustamir (54:1 & 2)' meaning 'Going away.'"  

Abū ʿĪsá said that this Ḥadīth is Ḥasan-Ṣaḥīḥ.
الترمذي:٣٢٨٦حَدَّثَنَا عَبْدُ بْنُ حُمَيْدٍ حَدَّثَنَا عَبْدُ الرَّزَّاقِ عَنْ مَعْمَرٍ عَنْ قَتَادَةَ عَنْ أَنَسٍ قَالَ

سَأَلَ أَهْلُ مَكَّةَ النَّبِيَّ ﷺ آيَةً فَانْشَقَّ الْقَمَرُ بِمَكَّةَ مَرَّتَيْنِ فَنَزَلَت (اقتَرَبَتِ السَّاعَةُ وَانْشَقَّ الْقَمَرُ ) إِلَى قَوْلِهِ (سحْرٌ مُسْتَمِرٌّ ) يَقُولُ ذَاهِبٌ  

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ