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.
bayhaqi:3710Muḥammad b. ʿAbdullāh al-Ḥāfiẓ > Abū Muḥammad ʿAbdullāh b. Isḥāq al-Baghawī > ʿAbd al-Malik b. Muḥammad > ʿAbd al-Ṣamad b. ʿAbd al-Wārith from my father > Ayyūb > ʿIkrimah > Ibn ʿAbbās

[Machine] "That the Prophet ﷺ prostrated in it, meaning in the valley (of Mecca), and the Muslims and the polytheists and the jinn and the humans prostrated in it."  

البيهقي:٣٧١٠أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو مُحَمَّدٍ عَبْدُ اللهِ بْنُ إِسْحَاقَ الْبَغَوِيُّ بِبَغْدَادَ ثنا عَبْدُ الْمَلِكِ بْنُ مُحَمَّدٍ ثنا عَبْدُ الصَّمَدِ بْنُ عَبْدِ الْوَارِثِ حَدَّثَنِي أَبِي ثنا أَيُّوبُ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ

أَنَّ النَّبِيَّ ﷺ سَجَدَ فِيهَا يَعْنِي وَالنَّجْمِ وَسَجَدَ فِيهَا الْمُسْلِمُونَ وَالْمُشْرِكُونَ وَالْجِنُّ وَالْإِنْسُ  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ أَبِي مَعْمَرٍ وَغَيْرِهِ عَنْ عَبْدِ الْوَارِثِ

See similar narrations below:

Collected by Bukhārī, Ibn Ḥibbān
bukhari:1071Musaddad > ʿAbd al-Wārith > Ayyūb > ʿIkrimah > Ibn ʿAbbās

The Prophet ﷺ I prostrated while reciting An-Najm and with him prostrated the Muslims, the pagans, the jinns, and all human beings.  

البخاري:١٠٧١حَدَّثَنَا مُسَدَّدٌ قَالَ حَدَّثَنَا عَبْدُ الْوَارِثِ قَالَ حَدَّثَنَا أَيُّوبُ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ ؓ

أَنَّ النَّبِيَّ ﷺ سَجَدَ بِالنَّجْمِ وَسَجَدَ مَعَهُ الْمُسْلِمُونَ وَالْمُشْرِكُونَ وَالْجِنُّ وَالإِنْسُ وَرَوَاهُ ابْنُ طَهْمَانَ عَنْ أَيُّوبَ  

ذِكْرُ مَا يُسْتَحَبُّ لِلْمَرْءِ إِذَا قَرَأَ سُورَةَ النَّجْمِ اسْتِعْمَالُ السُّجُودِ لِلَّهِ جَلَّ وَعَلَا

ibnhibban:2763al-Ḥasan b. Sufyān > al-Ḥasan b. ʿUmar b. Shaqīq And ʿUmar b. Yazīd al-Sayyārī > ʿAbd al-Wārith b. Saʿīd > Ayyūb > ʿIkrimah > Ibn ʿAbbās

[Machine] "That the Messenger of Allah ﷺ prostrated to the star, and the Muslims, polytheists, jinn, and humans also prostrated with him."  

ابن حبّان:٢٧٦٣أَخْبَرَنَا الْحَسَنُ بْنُ سُفْيَانَ قَالَ حَدَّثَنَا الْحَسَنُ بْنُ عُمَرَ بْنِ شَقِيقٍ وَعُمَرُ بْنُ يَزِيدَ السَّيَّارِيُّ قَالَا حَدَّثَنَا عَبْدُ الْوَارِثِ بْنُ سَعِيدٍ عَنْ أَيُّوبَ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ

«أَنَّ رَسُولَ اللَّهِ ﷺ سَجَدَ فِي النَّجْمِ وَسَجَدَ مَعَهُ الْمُسْلِمُونَ وَالْمُشْرِكُونَ وَالْجِنُّ وَالْإِنْسُ»