[Machine] A man came to the Messenger of Allah ﷺ and said, "O Messenger of Allah, I saw in this night, as a sleeper sees, that I was praying behind a tree. I then saw that I recited a prostration and I prostrated. I saw the tree as if it were prostrating with my prostration. I heard it while it was prostrating and saying, 'O Allah, write for me with it (the prostration) a reward with You, make it a treasure for me in Your presence, and remove from me by means of it a sin. Accept it from me as You accepted from Your servant Dawud (David).'"
Ibn Abbas said, "Then I saw the Messenger of Allah ﷺ recite the prostration, then he prostrated. I heard him while he was prostrating saying the same as the man said about the speech of the tree."
جَاءَ رَجُلٌ إِلَى رَسُولِ اللَّهِ ﷺ فَقَالَ يَا رَسُولَ اللَّهِ إِنِّي رَأَيْتُ فِي هَذِهِ اللَّيْلَةِ فِيمَا يَرَى النَّائِمُ كَأَنِّي أُصَلِّي خَلْفَ الشَّجَرَةِ فَرَأَيْتُ كَأَنِّي قَرَأْتُ سَجْدَةً فَسَجَدْتُ فَرَأَيْتُ الشَّجَرَةَ كَأَنَّهَا تَسْجُدُ بِسُجُودِي فَسَمِعْتُهَا وَهِيَ سَاجِدَةٌ وَهِيَ تَقُولُ اللَّهُمَّ اكْتُبْ لِي عِنْدَكَ بِهَا أَجْرًا وَاجْعَلْهَا لِي عِنْدَكَ ذُخْرًا وَضَعْ عَنِّي بِهَا وِزْرًا وَاقْبَلْهَا مِنِّي كَمَا قَبِلْتَ مِنْ عَبْدِكَ دَاوُدَ قَالَ ابْنُ عَبَّاسٍ فَرَأَيْتُ رَسُولَ اللَّهِ ﷺ «قَرَأَ السَّجْدَةَ ثُمَّ سَجَدَ فَسَمِعْتُهُ وَهُوَ سَاجِدٌ يَقُولُ مِثْلَ مَا قَالَ الرَّجُلُ عَنْ كَلَامِ الشَّجَرَةِ» صحيح