Sunan Ibn Majah, Book 5, Hadith 1106 (In-Book) ⓘ
It was narrated that Ibn ‘Abbas said: “I was with the Prophet, and a man came to him and said: ‘Last night while I was sleeping, I saw that I was praying towards the base of a tree. I recited (an Ayah of) prostration and prostrated, and the tree prostrated when I did, and I heard it saying: Allahummah-tut anni biha wizran, waktub li biha ajran, waj’al-ha li ‘indaka dhukhran (O Allah, reduce my burden of sin thereby, reward me for it and store it for me with You).’ Ibn ‘Abbas said: “I saw the Prophet recite (an Ayah of) prostration and then prostrate, and I heard him saying in his prostration something like that which the man had told him the tree said.”
حَدَّثَنَا أَبُو بَكْرِ بْنُ خَلاَّدٍ الْبَاهِلِيُّ، حَدَّثَنَا مُحَمَّدُ بْنُ يَزِيدَ بْنِ خُنَيْسٍ، عَنِ الْحَسَنِ بْنِ مُحَمَّدِ بْنِ عُبَيْدِ اللَّهِ بْنِ أَبِي يَزِيدَ، قَالَ قَالَ لِي ابْنُ جُرَيْجٍ يَا حَسَنُ أَخْبَرَنِي جَدُّكَ، عُبَيْدُ اللَّهِ بْنُ أَبِي يَزِيدَ عَنِ ابْنِ عَبَّاسٍ، قَالَ كُنْتُ عِنْدَ النَّبِيِّ ـ صلى الله عليه وسلم ـ فَأَتَاهُ رَجُلٌ فَقَالَ إِنِّي رَأَيْتُ الْبَارِحَةَ فِيمَا يَرَى النَّائِمُ كَأَنِّي أُصَلِّي إِلَى أَصْلِ شَجَرَةٍ فَقَرَأْتُ السَّجْدَةَ فَسَجَدْتُ فَسَجَدَتِ الشَّجَرَةُ لِسُجُودِي فَسَمِعْتُهَا تَقُولُ اللَّهُمَّ احْطُطْ عَنِّي بِهَا وِزْرًا وَاكْتُبْ لِي بِهَا أَجْرًا وَاجْعَلْهَا لِي عِنْدَكَ ذُخْرًا . قَالَ ابْنُ عَبَّاسٍ فَرَأَيْتُ النَّبِيَّ ـ صلى الله عليه وسلم ـ قَرَأَ السَّجْدَةَ فَسَجَدَ فَسَمِعْتُهُ يَقُولُ فِي سُجُودِهِ مِثْلَ الَّذِي أَخْبَرَهُ الرَّجُلُ عَنْ قَوْلِ الشَّجَرَةِ .
also referenced under: Hadith 1053 (Reference) & Volume 2, Book 5, Hadith 1053 (DarusSalam)