I was with the Prophet ﷺ when a man came to him and said, "Last night, in a dream, it was as though I was praying at the foot of a tree. I recited a verse of prostration and prostrated, and the tree prostrated along with my prostration. I heard it saying, 'O Allah, by it remove from me a sin, record for me by it a reward, and make it for me a treasure stored with You.'"Ibn Abbas said, "I then saw the Prophet ﷺ recite a verse of prostration and prostrate, and I heard him say in his prostration the same words that the man had reported the tree said."
حدثنا أبو بكر بن خلاد الباهلي حدثنا محمد بن يزيد بن خنيس عن الحسن بن محمد بن عبيد الله بن أبي يزيد قال قال لي ابن جريج يا حسن أخبرني جدك عبيد الله بن أبي يزيد
كنت عند النبي ﷺ فأتاه رجل فقال إني رأيت البارحة فيما يرى النائم كأني أصلي إلى أصل شجرة فقرأت السجدة فسجدت فسجدت الشجرة لسجودي فسمعتها تقول اللهم احطط عني بها وزرا واكتب لي بها أجرا واجعلها لي عندك ذخرا قال ابن عباس فرأيت النبي ﷺ قرأ السجدة فسجد فسمعته يقول في سجوده مثل الذي أخبره الرجل عن قول الشجرة
Its isnad is hasan. Tirmidhi transmitted it in the Chapter on Friday, in the section on what is said in the prostration of the Quran, no. 579, from the hadith of Muhammad bin Yazid, with this wording, and he said, "Hasan gharib." Ibn Khuzayma and Ibn Hibban graded it sahih, as did Hakim (1/219, 220), Dhahabi, and others.