Abdullah bin Abbas reported,

The Prophet ﷺ prostrated during the recitation of Surah an-Najm, and the Muslims, the polytheists, the jinn, and humankind all prostrated along with him.Ibrahim bin Tahman followed him in this narration from Ayub. Ibn Ulayyah did not mention Ibn Abbas.

Bukhari 4862

Sahih

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

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

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

البخاري 4862صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
So prostrate to Allah and worship Him
Numbering
Darussalam 4862
Bukhari 4862