“The Messenger of Allah, peace and blessings be upon him, prostrated at the end of Surah al-Najm, and [the jinn, human beings, and trees who were present] prostrated along with him.”
In al-Durr (6/121), al-Suyūṭī attributed it only to Ibn Mardawayh!
There are other hadiths concerning his prostration, peace and blessings be upon him, in Surah al-Najm, some of which are found in the two Ṣaḥīḥs, such as the hadith of Ibn Masʿūd, which is documented in Ṣaḥīḥ Abī Dāwūd (1267). Yet Abu Hurayrah’s prostration along with him, peace and blessings be upon him, contains a significant point that refutes the claim of those who alleged that the Prophet, peace and blessings be upon him, did not prostrate while he was in Medina, since Abu Hurayrah embraced Islam only later. For this reason, al-Ḥāfiẓ cited this hadith and followed it—after affirming the reliability of its narrators, as mentioned above—with the following:
“Ibn Mardawayh related in his exegesis, with a good chain of transmission, from al-ʿAlāʾ ibn ʿAbd al-Raḥmān, from his father, from Abū Salamah ibn ʿAbd al-Raḥmān: that he saw Abū Hurayrah prostrate at the end of Surah al-Najm, so he asked him about it. He replied: ‘I saw the Messenger of Allah, peace and blessings be upon him, prostrate in it.’ Abu Hurayrah only embraced Islam in Medina. ʿAbd al-Razzāq also related, with an authentic chain of transmission, from al-Aswad ibn Yazīd, from ʿUmar, that he prostrated in Surah al-Inshiqāq. And through Nāfiʿ, from Ibn ʿUmar, it is reported that he prostrated in it. This refutes those who claim that the practice of the people of Medina continued to be the omission of prostration in the Mufaṣṣal section of the Quran.”
Know also that the prostration of the inkwell and the pen has been reported in a dream that Abū Saʿīd al-Khudrī, may Allah be pleased with him, saw when he recited Surah Ṣād in it, in a hadith narrated by Aḥmad and others. It is documented in al-Ṣaḥīḥah (2710) and in Ṣaḥīḥ Abī Dāwūd under hadith no. 1271. It may therefore be said that the mention of the inkwell and pen prostrating in the hadith under discussion is an error on the part of one of its narrators, in which one hadith became conflated with another. And Allah, Most High, knows best. *