Abdullah bin Abbas reported,

The Prophet ﷺ performed prostration when reciting Surah an-Najm, and along with him the Muslims, the polytheists, the jinn, and humankind all prostrated. Ibrahim bin Tahman also narrated it from Ayub.

Bukhari 1071

Sahih

حدثنا مسدد قال حدثنا عبد الوارث قال حدثنا أيوب عن عكرمة

عن ابن عباس رضي الله عنهما

أن النبي ﷺ سجد بالنجم وسجد معه المسلمون والمشركون والجن والإنس ورواه إبراهيم بن طهمان عن أيوب

البخاري 1071صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prostrations of the Quran
Chapter
Prostration of Muslims with the polytheists, and the polytheist is impure and has no wudu
Numbering
Darussalam 1071
Bukhari 1071