It is narrated from Sayyiduna Abu Sa'id (may Allah be pleased with him) that he said: "I saw myself in a dream as if I were writing Surah Sad. Then when I reached the verse of prostration, everything I saw prostrated, even the tablet, the inkpot and the pen. Then I came to the Prophet (peace and blessings be upon him) (and related my dream), and he (peace and blessings be upon him) ordered that prostration be made in this surah."
Al-Harith and Ahmad bin Hanbal recorded it with a sahih chain.